dispose method

void dispose()

Dispose the WidgetsBinding observer.

Implementation

void dispose() {
  audioPlayer.dispose();
  if (!_isRegistered) {
    return;
  }
  WidgetsBinding.instance.removeObserver(this);
  _isRegistered = false;
}