update method

void update(
  1. Widget newWidget
)

Updates this element with a new widget configuration.

Implementation

void update(Widget newWidget) {
  widget = newWidget;
  _bindElement(widget, this);
}