unregisterTexture method Null safety

Future<void> unregisterTexture(
  1. int textureID
)

Unregister texture

The textureID generated when setLocalVideoRenderListener or setRemoteVideoRenderListener is called. You need to call this API to unregister when the texture is no longer needed

When to call: call when onUserVideoAvailable is false or the page is disposed

Implementation

Future<void> unregisterTexture(int textureID) {
  return _channel.invokeMethod('unregisterTexture', {
    "textureID": textureID,
  });
}