states property

Set<MaterialState> states

Describes the current MaterialState of the Toggleable.

The returned set will include:

Implementation

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