isOptional property

bool get isOptional

Return true if this 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;