isPressed property

bool isPressed

Getter for whether this class considers MaterialState.pressed to be active.

Implementation

bool get isPressed => materialStates.contains(MaterialState.pressed);