MessageBusBackend class
- Inheritance
-
- Object
- Backend<
MessageBusEvent> - MessageBusBackend
Constructors
-
MessageBusBackend(BackendArgument<
void> argument)
Properties
-
busHandlers
→ Map<
dynamic, Function> -
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
-
operations
→ Map<
MessageBusEvent, Function> -
Collection of your backend's operations, which will be executed on events from frontend
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
sendPortsOfIsolates
→ Map<
String, SendPort> -
final
Methods
-
addIsolateSendPort(
Packet2< String, SendPort> packet) → void -
init(
) → Future< void> -
Hook on start backend
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onError(
MessageBusEvent event, dynamic error) → Future< void> -
Hook, which will handle your backend's errors
inherited
-
removeIsolateSendPort(
String isolateId) → void -
send(
MessageBusEvent eventId, [Object? value]) → void -
Method for sending events with any data to frontend
inherited
-
sendChunks<
TVal> (MessageBusEvent eventId, List< TVal> values, {int itemsPerChunk = 100, Duration delay = const Duration(milliseconds: 16), bool updateAfterFirstChunk = false}) → Future<void> -
Method for sending large data by chunks
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited