updateShouldNotifyDependent method
bool
updateShouldNotifyDependent(
- covariant FoldBridgeScope oldWidget,
- Set<
FoldBridgeAspect> dependencies
override
Return true if the changes between this model and oldWidget match any
of the dependencies.
Implementation
@override
bool updateShouldNotifyDependent(
FoldBridgeScope oldWidget,
Set<FoldBridgeAspect> dependencies,
) =>
(dependencies.contains(FoldBridgeAspect.hinge) &&
hinge != oldWidget.hinge) ||
(dependencies.contains(FoldBridgeAspect.verticalBarEdge) &&
verticalBarEdge != oldWidget.verticalBarEdge);