declineInvitation method Null safety

Future<void> declineInvitation()

Declines received invitation to join this channel.

After this method completes successfully, channel event ChannelEventHandler.onUserDeclinedInvitation will be invoked.

Implementation

Future<void> declineInvitation() async {
  await _sdk.api.declineInvitation(channelUrl: channelUrl);
}