isHovered static method

bool isHovered(
  1. Set<WidgetEvent> events
)

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

Implementation

static bool isHovered(Set<WidgetEvent> events) {
  return events.contains(hovered);
}