Backend class abstract
Backend - is the second part of your two-classes logic component, which will live in a separated isolate and will have no effect on the UI thread. In the Backend, you should place all (heavy or not) your logic and data.
Constructors
- Backend({required BackendArgument argument})
- Super constructor
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
initActions(
) → void - Method for registering Backend's actions. You should place all your whenEventCome methods here.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
send<
Event, Data extends Object?> ({required Event event, Data? data, bool forceUpdate = false, bool sendDirectly = false}) → Future< void> - This is the method to send one-directional messages from Backend to Frontend. For example - you want to notify some user by getting some event from a server by web socket. In that situation send method will be the best choice.
-
toString(
) → String -
A string representation of this object.
inherited
-
whenEventCome<
Event> ([Event? event]) → BackendActionInitializer< Event> - Entry point for registering Backend's actions
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited