update method
- @protected
- required UpdateType updateType,
- required Widget oldWidget,
- 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;
}