update method
Updates the widget configuration to newWidget.
Implementation
@override
void update(Widget newWidget) {
super.update(newWidget);
final childWidget = (widget as ParentDataWidget).child;
_child = updateChild(_child, childWidget);
_applyParentData();
}