update method

  1. @protected
DomNodePatch? update({
  1. required UpdateType updateType,
  2. required Widget oldWidget,
  3. required Widget newWidget,
})

Update hook.

This hook gets called everytime a ancestor element rebuilds. This hook can optionally return a patch which will be applied on dom node associated with the current element(if there's any).

Implementation

@protected
DomNodePatch? update({
  required UpdateType updateType,
  required Widget oldWidget,
  required Widget newWidget,
}) {
  return null;
}