updateShouldNotifyDependent method

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

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

Implementation

@override
bool updateShouldNotifyDependent(OriginData oldWidget, Set<String> dependencies) {
  if (dependencies.contains('tag') && tag != oldWidget.tag) return true;
  if (dependencies.contains('itemGesturing') && itemGesturing != oldWidget.itemGesturing) return true;
  return false;
}