onEngineReady method
void
onEngineReady(
- dynamic callback()
Calls a function when the sequencer engine is ready. Trying to play the sequence won't do anything until the engine is ready.
Implementation
void onEngineReady(Function() callback) {
if (isEngineReady) {
callback();
} else {
onEngineReadyCallbacks.add(callback);
}
}