onDispose property

ImageEventCallback? onDispose
getter/setter pair

A callback that is invoked to report the image disposal.

It's preferred to use MemoryAllocations in flutter/foundation.dart than to use onDispose directly because MemoryAllocations allows multiple callbacks.

Implementation

static ImageEventCallback? onDispose;