dispose method

Future<void> dispose()

Implementation

Future<void> dispose() async {
  _channel.invokeMethod('disposePitchDetection');
  _rhythmController?.close();
  _rhythmController = null;
  _noteDetector?.dispose();
  _noteSubscription?.cancel();
  _isStarted = false;
}