dispose method

  1. @override
void dispose()
override

Disposes of the animation controller and calls super.dispose.

This is called when the widget is removed from the tree.

It is important to call dispose to free up resources when the widget is no longer needed.

Implementation

@override
/// Disposes of the animation controller and calls [super.dispose].
///
/// This is called when the widget is removed from the tree.
///
/// It is important to call [dispose] to free up resources when the widget
/// is no longer needed.
void dispose() {
  _controller.dispose();
  super.dispose();
}