canStart property

bool get canStart

Whether start is legal: from idle, or a new session after stopped.

Implementation

bool get canStart =>
    phase == CockpitRecorderPhase.idle ||
    phase == CockpitRecorderPhase.stopped;