Reputation: 578
Consider the following class.
class Test {
final String foo;
final dynamic bar;
Test({this.foo, this.bar});
Test.barInt({this.foo, this.bar});
}
How would the field bar
be speified as an int
in the named constructur barInt
?
Upvotes: 0
Views: 78