refresh method Null safety

Future<GroupChannel> refresh(
  1. String channelUrl
)

Refreshes an GroupChannel with given channelUrl

Implementation

static Future<GroupChannel> refresh(String channelUrl) async {
  final sdk = SendbirdSdk().getInternal();
  final result = await sdk.api.getChannel<GroupChannel>(
    channelType: ChannelType.group,
    channelUrl: channelUrl,
    passive: false,
    options: [
      ChannelQueryIncludeOption.deliveryReceipt,
      ChannelQueryIncludeOption.readReceipt,
      ChannelQueryIncludeOption.memberList,
      ChannelQueryIncludeOption.metaData,
    ],
  );
  return result;
}