processApplyJoinGroup method Null safety

Future<void> processApplyJoinGroup(
  1. {required List<String>? events,
  2. required bool? isAgree,
  3. required bool? isRespondInviter,
  4. String? reason}
)

Implementation

Future<void> processApplyJoinGroup({
  required List<String>? events,
  required bool? isAgree,
  required bool? isRespondInviter,
  String? reason,
}) async {
  await _channel.invokeMethod(
      'processApplyJoinGroup',
      {
        'events': events,
        'isAgree': isAgree,
        'isRespondInviter': isRespondInviter,
        'reason': reason
      }..removeWhere((key, value) => value == null));

  return;
}