canDiscardLast property

bool get canDiscardLast

Whether the newest recorded step can be annotated or deleted: only while recording, and only when a step exists.

Implementation

bool get canDiscardLast =>
    phase == CockpitRecorderPhase.recording && steps.isNotEmpty;