new
was made optional beginning with Dart 2.0, this is why some examples or tutorial still use new
and newer or updated ones don’t.
You can just always omit it.
const
can be omitted when the context requires const
new
was made optional beginning with Dart 2.0, this is why some examples or tutorial still use new
and newer or updated ones don’t.
You can just always omit it.
const
can be omitted when the context requires const