copyWith method
CurseForgeCategory
copyWith(
{ - int? id,
- int? gameId,
- String? name,
- String? slug,
- String? url,
- String? iconUrl,
- String? dateModified,
- bool? isClass,
- int? classId,
- 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,
);
}