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() {
  statsState.dispose();
  pathContainsController.dispose();
  statusCodeController.dispose();
  userIdController.dispose();
  ipAddressController.dispose();
  traceIdController.dispose();
  minDurationController.dispose();
  maxDurationController.dispose();
  _osMetricsTimer?.cancel();
  super.dispose();
}