remove method

void remove(
  1. String key, {
  2. ConfigScope scope = ConfigScope.session,
})

Remove a key from the given scope.

Implementation

void remove(String key, {ConfigScope scope = ConfigScope.session}) {
  final old = tryGet(key, scope: scope);
  _store[scope]!.remove(key);
  _sources[scope]!.remove(key);
  _emitChange(key, old, null, scope);
}