EventBus class abstract

Implementers

Constructors

EventBus({bool isModelBus = false})
factory

Properties

allEventStream Stream<(EventDTO, bool)>
stream for sended event (event dto, have listener or not)
no setter
hashCode int
The hash code for this object.
no setterinherited
isModelBus bool
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

haveHandler<T>({String? path, String? target}) bool
true if bus contain handler
haveListener<T>({String? path, String? target}) bool
true if bus contain listener
lastData<T>({String? path, String? target}) → T?
listen<T>({String? path, String? target}) Stream<T>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
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
toString() String
A string representation of this object.
inherited

Operators

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