dispose method
void
dispose()
override
Dispose the controller to free up resources.
Once disposed, the controller can not be used anymore.
If you try to use a disposed controller, an AssertionError
is thrown
Usage:
@override
void dispose() {
super.dispose();
controller?.dispose();
}
Implementation
void dispose() {
super.dispose();
MobileAds.pluginChannel.invokeMethod('disposeNativeAdController', {
'id': id,
});
_onVideoEvent.close();
attach(false);
}