Reputation: 966
I see I am allowed to use
argument: MyClassName(a,b)
as well as
argument: new MyClassName(a,b)
I wanted to understand is new
optional in Dart? Or these two return totally different things?
Upvotes: 8
Views: 928
Reputation: 143339
In Dart 2.0 strong mode new and const are optional so both are the same.
Upvotes: 10