andrasferenczi/dart-data-plugin

whether the constructor can generate optional parameters

Closed this issue · 2 comments

class ClassName {
   final String field;
 
// no need for @required
ClassName({this.field});
}

@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?

ok, thanks😬