dispose method

  1. @override
void dispose()
override

Called after this Node is completely removed from the Node tree.

Flowing upwards

Implementation

@override
void dispose() {
  _animation?.cancel();
  disposeElement();
  element.remove();
  super.dispose();
}