isRecording method

  1. @override
Future<bool> isRecording()

Checks if there's valid recording session. So if session is paused, this method will still return bool.true.

Implementation

@override
Future<bool> isRecording() async {
  return _mediaRecorder?.state == 'recording';
}