copyWith method

CurseForgeCategory copyWith({
  1. int? id,
  2. int? gameId,
  3. String? name,
  4. String? slug,
  5. String? url,
  6. String? iconUrl,
  7. String? dateModified,
  8. bool? isClass,
  9. int? classId,
  10. int? parentCategoryId,
})

Implementation

CurseForgeCategory copyWith({
  int? id,
  int? gameId,
  String? name,
  String? slug,
  String? url,
  String? iconUrl,
  String? dateModified,
  bool? isClass,
  int? classId,
  int? parentCategoryId,
}) {
  return CurseForgeCategory(
    id: id ?? this.id,
    gameId: gameId ?? this.gameId,
    name: name ?? this.name,
    slug: slug ?? this.slug,
    url: url ?? this.url,
    iconUrl: iconUrl ?? this.iconUrl,
    dateModified: dateModified ?? this.dateModified,
    isClass: isClass ?? this.isClass,
    classId: classId ?? this.classId,
    parentCategoryId: parentCategoryId ?? this.parentCategoryId,
  );
}