onDispose property
A callback that is invoked to report the picture disposal.
It's preferred to use MemoryAllocations
in flutter/foundation.dart
than to use onDispose directly because MemoryAllocations
allows multiple callbacks.
Implementation
static PictureEventCallback? onDispose;