This commit is contained in:
Vadim 2023-10-20 16:11:44 +02:00
parent 2486c32213
commit 61620acf97

View file

@ -17,10 +17,7 @@ class SelectableInheritedModel<T> extends InheritedModel<SelectableAspect> {
bool updateShouldNotify(SelectableInheritedModel oldWidget) => true; bool updateShouldNotify(SelectableInheritedModel oldWidget) => true;
@override @override
bool updateShouldNotifyDependent( bool updateShouldNotifyDependent(SelectableInheritedModel oldWidget, Set<SelectableAspect> dependencies) {
SelectableInheritedModel oldWidget,
Set<SelectableAspect> dependencies,
) {
if (dependencies.contains(SelectableAspect.list)) { if (dependencies.contains(SelectableAspect.list)) {
return true; return true;
} else if (dependencies.contains(SelectableAspect.selected)) { } else if (dependencies.contains(SelectableAspect.selected)) {