andrasferenczi / dart-data-plugin

IDEA plugin for generating utility methods for Dart data classes
148 stars 31 forks source link

whether the constructor can generate optional parameters #8

Closed ghost closed 4 years ago

ghost commented 4 years ago

class ClassName {
   final String field;

// no need for @required
ClassName({this.field});
}
andrasferenczi commented 4 years ago

@required can be disabled in general in the settings menu.

There is no way to specify how to generate for SOME fields only. If you have a suggestion for this case, pls share.

Did that answer your question?

ghost commented 4 years ago

ok, thanks😬