dispose method

void dispose()

Releases WebGL resources used by the graphics system.

Implementation

void dispose() {
  flush();
  gl
    ..deleteProgram(_program)
    ..deleteVertexArray(_vao)
    ..deleteBuffer(_interleavedBuffer)
    ..deleteBuffer(_quadIndexBuffer);
}