update method
Updates this element with a new widget configuration.
Implementation
@override
void update(Widget newWidget) {
final oldWidget = widget as InheritedWidget;
super.update(newWidget);
markNeedsBuild();
if ((newWidget as InheritedWidget).updateShouldNotify(oldWidget)) {
for (final dependent in _dependents) {
dependent.markNeedsBuild();
}
}
}