cancelActiveRun method
Requests the cancellation of the run in flight.
Returns false when no run is in flight. The request is idempotent: the run performs exactly one identity-gated tree stop, the same stop the deadline performs, and reports the teardown verification in its result.
Implementation
bool cancelActiveRun() {
final cancellation = _activeCancellation;
if (cancellation == null) return false;
cancellation.request();
return true;
}