dispose method

  1. @override
void dispose()
override

Disposes this value to save memory. Implementations should be idempotent.

Implementation

@override
void dispose() {
  if (!initialized) {
    return;
  }
  repositorySource.dispose();
  _initializedMap.forEach((key, value) {
    if (value is! Disposable) {
      return;
    }
    value.dispose();
  });
  initialized = false;
}