dispose method

void dispose()

Releases resources held by this controller.

After calling this, the controller must not be used.

Implementation

void dispose() {
  _isDisposed = true;
  // In production: _interstitialAd?.dispose();
  _state = AdState.idle;
}