createState method

FutureOr<NyxxPluginState<ClientType, NyxxPlugin<ClientType>>> createState()

Called to create the state for this plugin.

Each plugin creates a state for each client is attached to. States can contain mutable fields that can be updated at any time without affecting other instances of the plugin attached to other clients.

Implementation

FutureOr<NyxxPluginState<ClientType, NyxxPlugin<ClientType>>> createState() => NyxxPluginState(this);