updateShouldNotifyDependent method
bool
updateShouldNotifyDependent(
- covariant FFProvider<
FFState> oldWidget, - Set<
Symbol> dependencies
override
Return true if the changes between this model and oldWidget match any
of the dependencies.
Implementation
@override
bool updateShouldNotifyDependent(
covariant FFProvider<FFState> oldWidget,
Set<Symbol> dependencies,
) {
final rebuilds = dependencies.any(
(dependency) =>
oldWidget.state.getProp(dependency) != state.getProp(dependency),
);
if (rebuilds) {
debugPrint('rebuilding $dependencies');
}
return rebuilds;
}