destroySharedInstance static method

Future<void> destroySharedInstance()

Terminate a TRTCCloud singleton

Implementation

static Future<void> destroySharedInstance() async {
  await _channel.invokeMethod('destroySharedInstance');
  _trtcCloud?._cloudChannel = null;
  _trtcCloud = null;
}