dispose method

  1. @override
void dispose()
override

Disposes the sub-texture, and also disposes the parent texture if ownsParent was set to true.

Implementation

@override
void dispose() {
  if (_ownsParent!) {
    _parent!.dispose();
  }
  super.dispose();
}