copyWith method

AssetPathEntity copyWith({
  1. String? id,
  2. String? name,
  3. int? albumType = 1,
  4. DateTime? lastModified,
  5. RequestType? type,
  6. bool? isAll,
  7. PMFilter? filterOption,
  8. PMDarwinAssetCollectionType? darwinType,
  9. PMDarwinAssetCollectionSubtype? darwinSubtype,
})

Implementation

AssetPathEntity copyWith({
  String? id,
  String? name,
  int? albumType = 1,
  DateTime? lastModified,
  RequestType? type,
  bool? isAll,
  PMFilter? filterOption,
  PMDarwinAssetCollectionType? darwinType,
  PMDarwinAssetCollectionSubtype? darwinSubtype,
}) {
  return AssetPathEntity(
    id: id ?? this.id,
    name: name ?? this.name,
    albumType: albumType ?? this.albumType,
    lastModified: lastModified ?? this.lastModified,
    type: type ?? this.type,
    isAll: isAll ?? this.isAll,
    filterOption: filterOption ?? this.filterOption,
    darwinSubtype: darwinSubtype ?? this.darwinSubtype,
    darwinType: darwinType ?? this.darwinType,
  );
}