WidgetEventController.value constructor
WidgetEventController.value(
- Set<
WidgetEvent> events, { - ValueSetter<
Set< ? onChanged,WidgetEvent> >
Creates a new instance of WidgetEventController with a specific set of events.
events
: The initial set of activeWidgetEvent
s.onChanged
: A callback invoked when the set of active events changes. It takes a new set of events as a parameter and returnsvoid
.
Implementation
WidgetEventController.value(
Set<WidgetEvent> events, {
this.onChanged,
}) : value = events;