error property

bool get error

Whether the widget is in an error state.

Implementation

bool get error => contains(WidgetState.error);