dispose method

  1. @override
void dispose()
override

Releases everything this controller owns. The page that created the controller calls this from its own State.dispose(); a subclass that adds its own notifiers overrides this and ends with super.dispose().

Implementation

@override
void dispose() {
  amountController.dispose();
  trackingController.dispose();
  super.dispose();
}