copyWith method

LongreadImageMaterialItem copyWith({
  1. LongreadMaterialDiscriminator? discriminator,
  2. PublicationState? state,
  3. LongreadMaterialViewType? viewType,
  4. LongreadMaterialType? type,
  5. int? id,
  6. int? order,
  7. int? imageScale,
  8. FileMediaType? mediaType,
  9. String? filename,
  10. String? version,
  11. int? length,
  12. String? publishDate,
  13. String? publishedAt,
  14. LongreadMaterialContent? content,
})

Implementation

LongreadImageMaterialItem copyWith({
  enums.LongreadMaterialDiscriminator? discriminator,
  enums.PublicationState? state,
  enums.LongreadMaterialViewType? viewType,
  enums.LongreadMaterialType? type,
  int? id,
  int? order,
  int? imageScale,
  enums.FileMediaType? mediaType,
  String? filename,
  String? version,
  int? length,
  String? publishDate,
  String? publishedAt,
  LongreadMaterialContent? content,
}) {
  return LongreadImageMaterialItem(
    discriminator: discriminator ?? this.discriminator,
    state: state ?? this.state,
    viewType: viewType ?? this.viewType,
    type: type ?? this.type,
    id: id ?? this.id,
    order: order ?? this.order,
    imageScale: imageScale ?? this.imageScale,
    mediaType: mediaType ?? this.mediaType,
    filename: filename ?? this.filename,
    version: version ?? this.version,
    length: length ?? this.length,
    publishDate: publishDate ?? this.publishDate,
    publishedAt: publishedAt ?? this.publishedAt,
    content: content ?? this.content,
  );
}