isSelected static method

bool isSelected(
  1. Set<WidgetEvent> events
)

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

Implementation

static bool isSelected(Set<WidgetEvent> events) {
  return events.contains(selected);
}