createChannel static method

Future<OpenChannel> createChannel(
  1. OpenChannelParams params, {
  2. OnUploadProgressCallback? progress,
})

Creates an OpenChannel with given params and optional progress.

Implementation

static Future<OpenChannel> createChannel(
  OpenChannelParams params, {
  OnUploadProgressCallback? progress,
}) async {
  final sdk = SendbirdSdk().getInternal();
  return sdk.api.send<OpenChannel>(
      OpenChannelCreateRequest(params, onProgress: progress));
}