loadingDependsOn method
Implementation
@protected
void loadingDependsOn(TaskViewModel other, {String? childTag, String? tag}) {
assert(() {
_debugCheckDependency(other);
return true;
}(), '');
final loading = childTag == null ? other.loading : other.loadingWithTag(childTag);
final task = TaskInfo._(identityHashCode(other).toString(), tag ?? 'vm-${other.runtimeType}', const {});
other._parent[this] = loading.observeForever((value) => value ? _addTask(task) : _removeTask(task));
}