dispose method

  1. @override
void dispose()
override

Frees all the resources associated with this object.

This marks the object as no longer usable and will make all methods/properties besides mounted inaccessible.

Implementation

@override
void dispose() {
  _imagesHelper.threadOperation.cancelDownload(providerArguments.image);

  for (final image in state.uiImages.values) {
    image.dispose();
  }

  if (!completer.isCompleted) completer.complete();

  super.dispose();
}