dispose method
void
dispose()
Implementation
void dispose() {
dispatchEvent(Event({"type": "dispose"}));
if (image is List) {
image.forEach((img) {
img.dispose();
});
} else {
image?.dispose();
}
}