destroyCanvasView static method

Future<bool> destroyCanvasView(
  1. int viewID
)

Destroys the Canvas View and releases its resources If it returns false, it's probably because the textureID to be destroyed doesn't exist or ZegoExpressEngine not create.

Implementation

static Future<bool> destroyCanvasView(int viewID) async {
  return await SuperboardViewFlutter.methodChannel
          .invokeMethod('destroyPlatformView', {'viewID': viewID});
}