onEngineReady method

void onEngineReady(
  1. 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);
  }
}