dispose method
Frees the GPU-related resources allocated by this instance. Call this method whenever this instance is no longer used in your app.
Implementation
@override
void dispose() {
shadow!.dispose();
if(disposed) return;
disposed = true;
super.dispose();
}