isOptional property

bool isOptional

Whether the parameter is an optional parameter.

Optional parameters can either be positional or named. Named parameters that are annotated with the @required annotation are considered optional. Named parameters that are annotated with the required syntax are considered required.

Implementation

bool get isOptional;