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.

Implementations of this method should end with a call to the inherited method, as in super.deactivate().

Implementation

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