current method

Future<Recording?> current({
  1. int channel = 0,
})

Ask for current status of recording Returns the result of current recording status Metering level, Duration, Status...

Implementation

Future<Recording?> current({int channel = 0}) async {
  print('current');
  Map<String, Object> response;

  var result = await _channel.invokeMethod('current', {"channel": channel});

  if (result != null && _recording?.status != RecordingStatus.Stopped) {
    response = Map.from(result);
    _responseToRecording(response);
  }

  return _recording;
}