isRequired property

bool isRequired

Whether the 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.


bool get isRequired;