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;
@override
bool updateShouldNotifyDependent(
SelectableInheritedModel oldWidget,
Set<SelectableAspect> dependencies,
) {
bool updateShouldNotifyDependent(SelectableInheritedModel oldWidget, Set<SelectableAspect> dependencies) {
if (dependencies.contains(SelectableAspect.list)) {
return true;
} else if (dependencies.contains(SelectableAspect.selected)) {