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. @Deprecated('Use `albumTypeEx` instead. ' 'This feature was deprecated after v3.1.0') PMDarwinAssetCollectionType? darwinType,
  9. @Deprecated('Use `albumTypeEx` instead. ' 'This feature was deprecated after v3.1.0') PMDarwinAssetCollectionSubtype? darwinSubtype,
  10. 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,
  );
}