isPressed property

bool get isPressed

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

Implementation

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