updateShouldNotifyDependent method

bool updateShouldNotifyDependent(
  1. covariant ScopeModel oldWidget,
  2. Set<ValueRef> dependencies
)
override

Return true if the changes between this model and oldWidget match any of the dependencies.

Implementation

bool updateShouldNotifyDependent(ScopeModel oldWidget, Set<ValueRef> dependencies) {
  for (final ValueRef dependency in dependencies) {
    final GetAny get = Get.custom(dependency);
    if (_select(get) != oldWidget._select(get)) return true;
  }
  return false;
}