deleteIn method

Future<bool> deleteIn(
  1. LevitScope scope, {
  2. String? tag,
  3. bool force = false,
})

Deletes the store instance from scope.

If force is true, removes even permanent registrations.

Returns true when an instance registration was removed.

Implementation

Future<bool> deleteIn(LevitScope scope, {String? tag, bool force = false}) {
  final instanceKey =
      tag != null ? 'ls_store_${_getStoreTag(this, tag)}' : _defaultKey;
  return scope.delete<_LevitStoreInstance<T>>(tag: instanceKey, force: force);
}