EventBusIsolate class

Atention The result of calling the event can be received later than the events called in the event handler on the isolate side

EventBusIsolate it consists of two Event bus, one on the side of the main isolate and the other in the working isolate. They exchange EventDTO and the results of the handlers' work among themselves.

Inheritance

Constructors

EventBusIsolate({required void onInit(EventBus isolateBu, Object? initalData), Object? initalData})

Properties

allEventStream Stream<(EventDTO, bool)>
stream for sended event (event dto, have listener or not)
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
isInit bool
no setter
isModelBus bool
no setterinherited
onInit ↔ void Function(EventBus isolateBu, Object? initalData)
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
waitInit Future<bool>
no setter

Methods

addAllHandlerFromOtherBus(EventBus fromBus) → void
inherited
dispose() → void
haveHandler<T>({String? path, String? target}) bool
true if bus contain handler
inherited
haveListener<T>({String? path, String? target}) bool
true if bus contain listener
inherited
lastData<T>({String? path, String? target}) → T?
inherited
listen<T>({String? path, String? target}) Stream<T>
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeAllHandlerPresentInOtherBus(EventBus otherBus) → void
inherited
removeHandler<T>({String? path, String? target}) → void
inherited
removeNode(Topic topic, EventNode node) bool
This method call every time when listener close stream node removed if has no listener and handler and this !isModelBus
inherited
send<T>(T data, {String? path, String? fragment, String? target, Map<String, String>? arguments}) Future?
When you send event, handler can return result if call EventDTO.completer
override
setHandler<T>({T? initalData, String? path, String? target, required Handler<T> handler}) → void
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited