sendInvitationRequest method Null safety

Future<void> sendInvitationRequest(
  1. {required String? username,
  2. required String? reason,
  3. String? appKey}
)

Implementation

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

  return;
}