isErrored static method

bool isErrored(
  1. Set<WidgetEvent> events
)

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

Implementation

static bool isErrored(Set<WidgetEvent> events) {
  return events.contains(error);
}