GroupChannelCreateRequest constructor Null safety

GroupChannelCreateRequest(
  1. GroupChannelParams params,
  2. {OnUploadProgressCallback? onProgress,
  3. String? userId}
)

Implementation

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