OpenChannelCreateRequest constructor Null safety

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

Implementation

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