replace method

void replace(
  1. Set<WidgetEvent> events
)

Replace value with a new set of WidgetEvent.

Implementation

void replace(Set<WidgetEvent> events) {
  value = events;
  notifyListeners();
}