update method

  1. @override
void update(
  1. covariant DomComponent newComponent
)
override

Change the component used to configure this element.

The framework calls this function when the parent wishes to use a different component to configure this element. The new component is guaranteed to have the same runtimeType as the old component.

This function is called only during the "active" lifecycle state.

Implementation

@override
void update(DomComponent newComponent) {
  super.update(newComponent);
  _dirty = true;
  rebuild();
}