resetPlugin method

  1. @override
Future<void>? resetPlugin(
  1. FlutterSoundRecorderCallback callback
)
override

Implementation

@override
Future<void>? resetPlugin(
  FlutterSoundRecorderCallback callback,
) async {
  callback.log(Level.debug, '---> resetPlugin');
  for (int i = 0; i < _slots.length; ++i) {
    callback.log(Level.debug, "Releasing slot #$i");
    _slots[i]!.releaseFlautoRecorder();
  }
  _slots = [];
  callback.log(Level.debug, '<--- resetPlugin');
  return null;
}