unwatch<T> method

void unwatch<T>(
  1. SaveProvider<T> provider
)
inherited

Unregister the observables.

Implementation

void unwatch<T>(SaveProvider<T> provider) {
  repo.unwatch(provider);
  _providers.remove(provider.key);
  _subscriptions[provider.key]?.cancel();
  _subscriptions.remove(provider.key);
}