acceptInvitation method

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

Implementation

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

  return;
}