states property

Set<WidgetState> get states

Describes the current WidgetState of the Toggleable.

The returned set will include:

Implementation

Set<WidgetState> get states => <WidgetState>{
  if (!isInteractive) WidgetState.disabled,
  if (_hovering) WidgetState.hovered,
  if (_focused) WidgetState.focused,
  if (value ?? true) WidgetState.selected,
};