dispose method
Implementation
@override
void dispose() {
dispatchEvent(Event({"type": "dispose"}));
if(texture != null){
texture?.dispose();
}
}
@override
void dispose() {
dispatchEvent(Event({"type": "dispose"}));
if(texture != null){
texture?.dispose();
}
}