Backend<TEvent> class
abstract
Class, which must be a ancestor of your backend classes
Constructors
-
Backend(BackendArgument<
void> argument)
Properties
- 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
-
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
-
send<
TVal> (TEvent eventId, [TVal? 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)}) → Future<void> - Method for sending large data by chunks
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited