states property

Set<WidgetState> states
final

Its states: WidgetState.focused while it has the focus, WidgetState.disabled when the field takes no input, WidgetState.error when the field's value is out of range.

Implementation

final Set<WidgetState> states;