Backend<TEvent> class abstract

Class, which must be a ancestor of your backend classes

Mixed in types
Implementers

Constructors

Backend(BackendArgument<void> argument)

Properties

busHandlers Map<dynamic, Function>
no setter
hashCode int
The hash code for this object.
no setterinherited
operations Map<TEvent, Function>
Collection of your backend's operations, which will be executed on events from frontend
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

init() Future<void>
Hook on start backend
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onError(TEvent event, dynamic error) Future<void>
Hook, which will handle your backend's errors
inherited
send(TEvent eventId, [Object? value]) → void
Method for sending events with any data to frontend
sendChunks<TVal>(TEvent 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