dispose method
void
dispose()
Disposes the current instance by canceling any active event subscriptions.
Call this when the slider ad is no longer needed to clean up resources.
Implementation
void dispose() {
_eventSubscription?.cancel();
}