dispose method Null safety

  1. @override
void dispose()
override

Free up the resources associated with this ink feature.

Implementation

@override
void dispose() {
  _animationController.stop();
  _animationController.dispose();
  if (_fragmentShaderInitialized) {
    _fragmentShader.dispose();
  }
  super.dispose();
}