copyWith method
AssetPathEntity
copyWith({
- String? id,
- String? name,
- int? albumType = 1,
- DateTime? lastModified,
- RequestType? type,
- bool? isAll,
- PMFilter? filterOption,
- @Deprecated('Use `albumTypeEx` instead. ' 'This feature was deprecated after v3.1.0') PMDarwinAssetCollectionType? darwinType,
- @Deprecated('Use `albumTypeEx` instead. ' 'This feature was deprecated after v3.1.0') PMDarwinAssetCollectionSubtype? darwinSubtype,
- AlbumType? albumTypeEx,
Implementation
AssetPathEntity copyWith({
String? id,
String? name,
int? albumType = 1,
DateTime? lastModified,
RequestType? type,
bool? isAll,
PMFilter? filterOption,
@Deprecated(
'Use `albumTypeEx` instead. '
'This feature was deprecated after v3.1.0',
)
PMDarwinAssetCollectionType? darwinType,
@Deprecated(
'Use `albumTypeEx` instead. '
'This feature was deprecated after v3.1.0',
)
PMDarwinAssetCollectionSubtype? darwinSubtype,
AlbumType? albumTypeEx,
}) {
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,
// ignore: deprecated_member_use_from_same_package
darwinSubtype: darwinSubtype ?? this.darwinSubtype,
// ignore: deprecated_member_use_from_same_package
darwinType: darwinType ?? this.darwinType,
albumTypeEx: albumTypeEx ?? this.albumTypeEx,
);
}