startSession method
Implementation
ArgosDiagnosticSession startSession({
String? label,
String? note,
Map<String, String> attributes = const <String, String>{},
}) {
if (_sessionState == ArgosSessionState.recording) {
return _activeSession!;
}
if (_sessionState == ArgosSessionState.paused) {
resumeSession();
return _activeSession!;
}
return _startNewSession(
now: _now(),
automaticManaged: false,
label: label,
note: note,
attributes: attributes,
);
}