dispose method

  1. @mustCallSuper
void dispose()
inherited

Called when the DataSource instance is no longer needed and should release any held resources (e.g., closing connections, unregistering listeners).

Subclasses that override this method must call super.dispose() to ensure the observer is properly notified of the disposal.

Implementation

@mustCallSuper
void dispose() {
  observer.onDispose(runtimeType.toString());
}