Actor class abstract

Actor is an abstract superclass, where all their subclasses will be executed separately in each instance. Actor is used to ensure sharing Data between multiples Isolates. All subclasses of Actor will be accessible in each server Instance.

Constructors

Actor(String name, {Map<String, dynamic> data = const {}})

Properties

data Map<String, dynamic>
final
hashCode int
The hash code for this object.
no setterinherited
name String
latefinal
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() FutureOr<void>
dispose will be used to free all Objects and resources used by Agent
execute(String action, {Map<String, dynamic> data = const {}}) FutureOr<void>
execute will be used to execute some operations in Agent instance.
get(String action, {Map<String, dynamic> data = const {}}) FutureOr
get will be used to get Data from Agent depending from Action.
getData() Map<String, dynamic>
getInstance(String action, {Map<String, dynamic> data = const {}}) Actor?
getInstance will be used to have directly access to Agent instances Objects. it should just used to get method but not to execute.
getName() String
initState() FutureOr<void>
initState will be called to initialized Data.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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