copyWith method

StickerSetInfo copyWith({
  1. int? id,
  2. String? title,
  3. String? name,
  4. Thumbnail? thumbnail,
  5. Outline? thumbnailOutline,
  6. bool? isOwned,
  7. bool? isInstalled,
  8. bool? isArchived,
  9. bool? isOfficial,
  10. StickerType? stickerType,
  11. bool? needsRepainting,
  12. bool? isAllowedAsChatEmojiStatus,
  13. bool? isViewed,
  14. int? size,
  15. List<Sticker>? covers,
})

Implementation

StickerSetInfo copyWith({
  int? id,
  String? title,
  String? name,
  Thumbnail? thumbnail,
  Outline? thumbnailOutline,
  bool? isOwned,
  bool? isInstalled,
  bool? isArchived,
  bool? isOfficial,
  StickerType? stickerType,
  bool? needsRepainting,
  bool? isAllowedAsChatEmojiStatus,
  bool? isViewed,
  int? size,
  List<Sticker>? covers,
}) =>
    StickerSetInfo(
      id: id ?? this.id,
      title: title ?? this.title,
      name: name ?? this.name,
      thumbnail: thumbnail ?? this.thumbnail,
      thumbnailOutline: thumbnailOutline ?? this.thumbnailOutline,
      isOwned: isOwned ?? this.isOwned,
      isInstalled: isInstalled ?? this.isInstalled,
      isArchived: isArchived ?? this.isArchived,
      isOfficial: isOfficial ?? this.isOfficial,
      stickerType: stickerType ?? this.stickerType,
      needsRepainting: needsRepainting ?? this.needsRepainting,
      isAllowedAsChatEmojiStatus:
          isAllowedAsChatEmojiStatus ?? this.isAllowedAsChatEmojiStatus,
      isViewed: isViewed ?? this.isViewed,
      size: size ?? this.size,
      covers: covers ?? this.covers,
    );