OpenChannelUpdateRequest constructor

OpenChannelUpdateRequest(
  1. OpenChannelParams params, {
  2. OnUploadProgressCallback? onProgress,
  3. String? userId,
})

Implementation

OpenChannelUpdateRequest(
  OpenChannelParams params, {
  OnUploadProgressCallback? onProgress,
  String? userId,
}) : super(userId: userId) {
  url = 'open_channels/${params.channelUrl}';
  body = params.toJson();
  isMultipart = params.coverImage != null && params.coverImage!.hasBinary;
  progress = onProgress;
}