Is there a difference in how member variables are initialized in Dart?
In your trivial case, it doesn’t matter. In general, you can initialize instance variables in a few ways: Inline (field initializers) class Example1 { T x = value; } Advantages: Direct, concise. Member will be initialized in all constructors. Can be used to initialize final or non-nullable members. Member is initialized before invoking base class … Read more