whether the constructor can generate optional parameters
Closed this issue · 2 comments
Deleted user commented
class ClassName {
final String field;
// no need for @required
ClassName({this.field});
}
andrasferenczi commented
@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?
Deleted user commented
ok, thanks😬