leave method

Future<bool> leave({
  1. bool showDialog = true,
})

The speaker can use this method to leave the seat. If the showDialog parameter is set to true, a confirmation dialog will be displayed before leaving the seat.

Implementation

Future<bool> leave({bool showDialog = true}) async {
  ZegoLoggerService.logInfo(
    'leave, showDialog:$showDialog',
    tag: 'audio room',
    subTag: 'controller.seat',
  );

  return await private.seatManager?.leaveSeat(showDialog: showDialog) ??
      false;
}