required property

bool required
final

true if this parameter is required.

  • Normal parameters: true.
  • Optional parameters: false.
  • Named parameters: true if declared as required.
  • Fields: true if is NOT nullable.

Implementation

final bool required;