stop static method

bool stop([
  1. String? runId
])

Stops the run runId, or whichever is running when it's null.

Returns false when that run isn't running.

Implementation

static bool stop([String? runId]) {
  if (_runId == null || (runId != null && runId != _runId)) return false;
  return Playbook.stop();
}