update method
Updates this element to represent newWidget and rebuilds it.
Implementation
void update(Widget newWidget) {
final oldWidget = widget;
widget = newWidget;
_updateGlobalKeyForUpdate(oldWidget, newWidget);
rebuild();
}
Updates this element to represent newWidget and rebuilds it.
void update(Widget newWidget) {
final oldWidget = widget;
widget = newWidget;
_updateGlobalKeyForUpdate(oldWidget, newWidget);
rebuild();
}