IsolateManager class
Manager which works in Isolate, respond on IsolateBlocEvent
s from UI Isolate,
manages IsolateBlocBases and implements register and getBloc functions.
Constructors
- IsolateManager({required IIsolateMessenger messenger})
-
Creates isolate manager and set instance.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispose(
) → Future< void> - Disposes resources.
-
getBlocWrapper<
B extends IsolateBlocBase< (Object?, S> , S>) → IsolateBlocWrapper< S> -
Use this function to communicate with IsolateBlocBase in
Isolate
. -
initialize(
Initializer userInitializer) → Future< void> - Finish initialization by calling Initializer and sends initial states to the UIIsolateManager.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerBloc<
T extends IsolateBlocBase< (Object?, S> , S>IsolateBlocCreator creator, {S? initialState}) → void - Registers IsolateBlocBase. This allows you to create it in UI Isolate using createBloc function.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance ↔ IsolateManager?
-
Instance of last created manager.
getter/setter pair