isFocused static method

bool isFocused(
  1. Set<WidgetEvent> events
)

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

Implementation

static bool isFocused(Set<WidgetEvent> events) {
  return events.contains(focused);
}