init method

FutureOr<void> init()

Initialize the state of this Handler.

Any state that cannot be sent to another Isolate must be initialized in this method rather than in the Actor's constructor.

This method must not be called directly on an Actor instance, as the framework itself will invoke it on the remote Isolate before the actor is allowed to handle messages sent to it.

Implementation

FutureOr<void> init() async {}