isRequired property

bool get isRequired

Whether this parameter is a required parameter.

Required parameters can either be positional or named.

Note: this returns false for a named parameter that is annotated with the @required annotation.

Implementation

bool get isRequired;