startRecording method

Future<void> startRecording(
  1. String filePath
)

Implementation

Future<void> startRecording(String filePath) async {
  if (isRecording) return;
  final status = driver.startRecording(filePath);
  if (status == 0) {
    isRecording = true;
    currentFilePath = filePath;
    recordingStartTime = DateTime.now();
    lastError = null;
  } else {
    lastError = 'Failed to start recording (status $status)';
  }
  notifyListeners();
}