update method

  1. @mustCallSuper
void update(
  1. covariant Widget newWidget
)
inherited

Shows newWidget, which Widget.canUpdate matched with widget.

Implementation

@mustCallSuper
void update(covariant Widget newWidget) {
  assert(
    Widget.canUpdate(widget, newWidget),
    '$newWidget cannot update $this',
  );
  _widget = newWidget;
}