update method

void update(
  1. Widget newWidget
)

Implementation

void update(Widget newWidget) {
  widget = newWidget;
}