update method

void update(
  1. Widget widget
)

Shows widget in its place from the next frame on: one of the same type keeps its state.

Implementation

void update(Widget widget) {
  if (_removed) {
    return;
  }
  _widget = widget;
  _session._changed();
}