isNotOptional property
bool
get
isNotOptional
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, this will
return false
for a named parameter that is annotated with the
@required
annotation.
Implementation
// TODO(brianwilkerson) Rename this to `isRequired`.
bool get isNotOptional;