acceptInvitation method Null safety

Future<void> acceptInvitation(
  1. {String? accessCode}

Accepts received invitation to join on this channel.

If this channel sets accessCode to join, you have to provide accessCode as parameter. After this method completes successfully, channel event ChannelEventHandler.onUserJoined will be invoked.


Future<void> acceptInvitation({String? accessCode}) async {
  //await or return?
  await _sdk.api.send(GroupChannelInvitationAcceptRequest(
    channelUrl: channelUrl,
    accessCode: accessCode,