isRequired property

bool isRequired
final

Whether it must be filled: its label carries a mark, and a screen reader says so.

Implementation

final bool isRequired;