deactivate method

  1. @override
void deactivate ()
override

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

The framework calls this method when a previously active element is moved to the list of inactive elements. While in the inactive state, the element will not appear on screen. The element can remain in the inactive state only until the end of the current animation frame. At the end of the animation frame, if the element has not be reactivated, the framework will unmount the element.

This is (indirectly) called by deactivateChild.

See the lifecycle documentation for Element for additional information.

Implementation

@override
void deactivate() {
  _state.deactivate();
  super.deactivate();
}