Open ModWU opened 4 years ago
Explain: '||' > '??' Actually, so 'parent?.updateShouldNotify(oldWidget.parent) ?? false || providers != oldWidget.providers' equals 'parent?.updateShouldNotify(oldWidget.parent) ?? providers != oldWidget.providers'
Suggestion: change "@override bool updateShouldNotify(_InheritedProviders oldWidget) { return parent?.updateShouldNotify(oldWidget.parent) ?? false || providers != oldWidget.providers; }" to "@override bool updateShouldNotify(_InheritedProviders oldWidget) { return providers != oldWidget.providers ? true : (parent ?.updateShouldNotify(oldWidget.parent) ?? false); }
Explain: '||' > '??' Actually, so 'parent?.updateShouldNotify(oldWidget.parent) ?? false || providers != oldWidget.providers' equals 'parent?.updateShouldNotify(oldWidget.parent) ?? providers != oldWidget.providers'
Suggestion: change "@override bool updateShouldNotify(_InheritedProviders oldWidget) { return parent?.updateShouldNotify(oldWidget.parent) ?? false || providers != oldWidget.providers; }" to "@override bool updateShouldNotify(_InheritedProviders oldWidget) { return providers != oldWidget.providers ? true : (parent ?.updateShouldNotify(oldWidget.parent) ?? false); }