required property

bool required
final

Whether the field is required.

Implementation

final bool required;