required property

bool required
getter/setter pair

Whether this parameter should be annotated with the required keyword.

This is only valid on named parameters.

This is only valid when the output is targeting a Dart language version that supports null safety.

Implementation

bool required = false;