isRequired property

bool get isRequired

Return true if this parameter is either a required positional parameter, or a named parameter with the required keyword.

Note: 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

bool get isRequired;