update method

  1. @override
void update(
  1. Widget newWidget
)
override

Updates this element to represent newWidget and rebuilds it.

Implementation

@override
void update(Widget newWidget) {
  final oldWidget = widget;
  super.update(newWidget);
  final updatedWidget = widget;
  if (updatedWidget.updateShouldNotify(oldWidget)) {
    notifyDependents();
  }
}