release method Null safety

Future<int> release()

Release an NERtc instance and free up resources

Implementation

Future<int> release() async {
  this._channelEventHandler.setCallback(null);
  this.clearStatsEventCallback();
  IntValue reply = await _api.release();
  this._deviceManager.clearEventCallback();
  this._audioEffectManager.clearEventCallback();
  this._audioMixingManager.clearEventCallback();
  return reply.value ?? -1;
}