dispose method

void dispose([
  1. List<FlutterAngleTexture>? textures
])

Implementation

void dispose([List<FlutterAngleTexture>? textures]) {
  textures?.forEach((t) {
    deleteTexture(t);
  });
  // if(_display != nullptr) calloc.free(_display);
  // if(_EGLconfig != nullptr) calloc.free(_EGLconfig);
  // if(_baseAppContext != nullptr) calloc.free(_baseAppContext);
  // if(_pluginContext != nullptr) calloc.free(_pluginContext);
  // if(_dummySurface != nullptr) calloc.free(_dummySurface);
  _worker.dispose();
  _libOpenGLES = null;
}