exitChatRoom method Null safety

Future<void> exitChatRoom(
  1. {required String? roomId}
)

Implementation

Future<void> exitChatRoom({
  required String? roomId,
}) async {
  await _channel.invokeMethod('exitChatRoom',
      {'roomId': roomId}..removeWhere((key, value) => value == null));

  return;
}