updateShouldNotifyDependent method

  1. @override
bool updateShouldNotifyDependent(
  1. covariant SharedValueInheritedModel oldWidget,
  2. Set<int> dependencies
)
override

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

Implementation

@override
bool updateShouldNotifyDependent(
  SharedValueInheritedModel oldWidget,
  Set<int> dependencies,
) {
  return dependencies.any(changedKeys.contains);
}