pressedAndFocused property

Listenable pressedAndFocused
latefinal

A Listenable that fires when isPressed or isFocused change.

Use this as the listenable of a ListenableBuilder that drives a background highlight responding to both pointer presses and keyboard focus but not hover (e.g. GlassListTile, _ActionSheetButton).

Implementation

late final Listenable pressedAndFocused;