applyJoinGroup method Null safety

Future<void> applyJoinGroup(
  1. {required String? groupId,
  2. String? reason}
)

Implementation

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

  return;
}