copyWith method

AssetEntity copyWith({
  1. String? id,
  2. int? typeInt,
  3. int? width,
  4. int? height,
  5. int? duration,
  6. int? orientation,
  7. bool? isFavorite,
  8. String? title,
  9. int? createDateSecond,
  10. int? modifiedDateSecond,
  11. String? relativePath,
  12. double? latitude,
  13. double? longitude,
  14. String? mimeType,
  15. 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,
  );
}