WidgetEventController.value constructor

WidgetEventController.value(
  1. Set<WidgetEvent> events, {
  2. ValueSetter<Set<WidgetEvent>>? onChanged,
})

Creates a new instance of WidgetEventController with a specific set of events.

  • events: The initial set of active WidgetEvents.
  • onChanged: A callback invoked when the set of active events changes. It takes a new set of events as a parameter and returns void.

Implementation

WidgetEventController.value(
  Set<WidgetEvent> events, {
  this.onChanged,
}) : value = events;