activate method

  1. @override
void activate ()

Transition from the "inactive" to the "active" lifecycle state.

The framework calls this method when a previously deactivated element has been reincorporated into the tree. The framework does not call this method the first time an element becomes active (i.e., from the "initial" lifecycle state). Instead, the framework calls mount in that situation.

See the lifecycle documentation for Element for additional information.


void activate() {
  visitAncestorElements((parent) {
    if (parent is _NestedHookElement) {
      _parent = parent;
    return false;