isPressed property Null safety

bool isPressed

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

Implementation

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