dispose method

  1. @mustCallSuper
void dispose()

Releases resources.

Implementation

@mustCallSuper
void dispose() {
  if (kFlutterMemoryAllocationsEnabled) {
    FlutterMemoryAllocations.instance.dispatchObjectDisposed(object: this);
  }

  for (final flight in _flights.values) {
    flight.dispose();
  }
}