deleteIn method

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

Internal helper to delete this state from a specific scope.

Implementation

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