createChannel static method
Future<OpenChannel>
createChannel(
- OpenChannelParams params, {
- 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));
}