dispose method

  1. @override
void dispose()
override

Releases the native resources held by the FragmentShader.

After this method is called, calling methods on the shader, or attaching it to a Paint object will fail with an exception. Calling dispose twice will also result in an exception being thrown.

Implementation

@override
void dispose() {
  super.dispose();
  _floats = _kEmptyFloat32List;
  _dispose();
}