isPressed static method

bool isPressed(
  1. Set<WidgetEvent> events
)

Checker for whether events considers WidgetEvent.pressed to be active.

Implementation

static bool isPressed(Set<WidgetEvent> events) {
  return events.contains(pressed);
}