showExitRoomDialog method

void showExitRoomDialog(
  1. String title
)

Implementation

void showExitRoomDialog(String title) {
  showConferenceDialog(
    title: title.roomTr,
    confirmText: 'ok'.roomTr,
    confirmTextStyle: RoomTheme.defaultTheme.textTheme.labelMedium,
    onConfirm: () {
      Get.until((route) {
        var args = route.settings.arguments;
        if (args is Map) {
          return route is! PopupRoute && args['from'] != 'ConferenceMainPage';
        }
        return route is! PopupRoute;
      });
      Get.back();
    },
    barrierDismissible: false,
  );
}