copyWith method
AssetEntity
copyWith(
{ - String? id,
- int? typeInt,
- int? width,
- int? height,
- int? duration,
- int? orientation,
- bool? isFavorite,
- String? title,
- int? createDateSecond,
- int? modifiedDateSecond,
- String? relativePath,
- double? latitude,
- double? longitude,
- String? mimeType,
- int? subtype,
})
Implementation
AssetEntity copyWith({
String? id,
int? typeInt,
int? width,
int? height,
int? duration,
int? orientation,
bool? isFavorite,
String? title,
int? createDateSecond,
int? modifiedDateSecond,
String? relativePath,
double? latitude,
double? longitude,
String? mimeType,
int? subtype,
}) {
return AssetEntity(
id: id ?? this.id,
typeInt: typeInt ?? this.typeInt,
width: width ?? this.width,
height: height ?? this.height,
duration: duration ?? this.duration,
orientation: orientation ?? this.orientation,
isFavorite: isFavorite ?? this.isFavorite,
title: title ?? this.title,
createDateSecond: createDateSecond ?? this.createDateSecond,
modifiedDateSecond: modifiedDateSecond ?? this.modifiedDateSecond,
relativePath: relativePath ?? this.relativePath,
latitude: latitude ?? this.latitude,
longitude: longitude ?? this.longitude,
mimeType: mimeType ?? this.mimeType,
subtype: subtype ?? this.subtype,
);
}