deactivate method

  1. @override
void deactivate()
override

Called when this object is removed from the tree.

https://api.flutter.dev/flutter/widgets/State/deactivate.html

Implementation

@override
void deactivate() {
  if (_keepAliveHandle != null) {
    _releaseKeepAlive();
  }
  super.deactivate();
}