EventManager.create constructor
EventManager.create({
- List<
EventObserver> observers = const [], - DispatchStrategy defaultDispatchStrategy = const DispatchStrategy.concurrent(),
Creates a default EventManager.
observers
can be provided to observe events dispatched.
defaultDispatchStrategy
defines the strategy used when dispatching events.
Implementation
factory EventManager.create({
List<EventObserver> observers = const [],
DispatchStrategy defaultDispatchStrategy =
const DispatchStrategy.concurrent(),
}) {
return EventManager(
eventHandlerStore: EventHandlerStore(),
observers: observers,
defaultDispatchStrategy: defaultDispatchStrategy,
);
}