onceState method Null safety
- STATES_ENUM state,
- dynamic callback(
- PluginEvent<
STATES_ENUM>
- PluginEvent<
Executes the callback
once state
is emitted
Implementation
onceState(
STATES_ENUM state,
dynamic Function(PluginEvent<STATES_ENUM>) callback,
) {
once(events, callback, condition: () => this.state == state);
}