markAsDirty<S> method

void markAsDirty<S>({
  1. String? tag,
  2. String? key,
})

Mark instance as a dirty

Implementation

void markAsDirty<S>({String? tag, String? key}) {
  final String newKey = key ?? _getKey(S, tag);
  if (_singl.containsKey(newKey)) {
    final _InstanceBuilderFactory<T> dep =
        _singl[newKey]! as _InstanceBuilderFactory<T>;
    if (!dep.permanent) {
      dep.isDirty = true;
    }
  }
}