markAsDirty<S> method

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

Implementation

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