Mediator class
The Mediator is the central point of communication.
It is a wrapper around EventManager and RequestManager.
Constructors
- Mediator({required EventManager eventManager, required RequestManager requestManager})
- Creates a new Mediator
-
Mediator.create({List<
EventObserver> observers = const [], DispatchStrategy defaultDispatchStrategy = const DispatchStrategy.concurrent()}) -
Creates a default Mediator.
factory
Properties
- events → EventManager
-
Publishing events.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- requests → RequestManager
-
Request/response communication.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited