states property

Set<WidgetState> 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,
};