Dart New
Dart's new
keyword is optional, you don't need new
when creating an object. var p = Point(1, 2);
is the same
as var p = new Point(1, 2);
. This is different from Java, where new
is required.
Dart's new
keyword is optional, you don't need new
when creating an object. var p = Point(1, 2);
is the same
as var p = new Point(1, 2);
. This is different from Java, where new
is required.