updateWidget method

void updateWidget(
  1. Widget child
)

Implementation

void updateWidget(Widget child) {
  this.child = child;
  updater.value = !updater.value;
}