start method

void start([
  1. String? name
])

Starts a new recording session, optionally named name (whitespace trimmed; empty names start an unnamed session). The name surfaces as the exported case document's name.

Implementation

void start([String? name]) => _run(() {
  final trimmed = name?.trim();
  recorder.start(
    trimmed == null || trimmed.isEmpty
        ? null
        : CockpitInteractionRecordingRequest(name: trimmed),
  );
});