isNotOptional property
Return true if this parameter is a required parameter. Required
parameters are always positional, unless the experiment 'non-nullable' is
enabled, in which case named parameters can also be required.
Note: regardless of the state of the 'non-nullable' experiment, the
presence or absence of the @required annotation does not change the
meaning of this getter. The parameter {@required int x} will return
false and the parameter {@required required int x} will return
true
Implementation
@Deprecated('Use isRequired instead')
bool get isNotOptional;