dispose method
void
dispose()
Method to clean the internal state on player dispose.
Implementation
void dispose() {
isInitialized = false;
_removeEventListeners();
eventManager.clear();
resetState();
}
Method to clean the internal state on player dispose.
void dispose() {
isInitialized = false;
_removeEventListeners();
eventManager.clear();
resetState();
}