copyWith method
AssetPathEntity
copyWith({
- String? id,
- String? name,
- int? albumType = 1,
- DateTime? lastModified,
- RequestType? type,
- bool? isAll,
- PMFilter? filterOption,
- PMDarwinAssetCollectionType? darwinType,
- 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,
);
}