AssetPathEntity class Null safety

The abstraction of albums and folders. It represent a bucket in the MediaStore on Android, and the PHAssetCollection object on iOS/macOS.

Annotations

Constructors

AssetPathEntity({required String id, required String name, int assetCount = 0, int albumType = 1, DateTime? lastModified, RequestType type = RequestType.common, bool isAll = false, FilterOptionGroup? filterOption})

Properties

albumType int
The type of the album.
final
assetCount int
Total assets count of the album.
final
filterOption FilterOptionGroup
The collection of filter options of the album.
final
hashCode int
The hash code for this object.
read-only, override
id String
The ID of the album (asset collection).
final
isAll bool
Whether the album contains all assets.
final
lastModified DateTime?
The latest modification date of the album.
final
name String
The name of the album.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
type RequestType
The value used internally by the user. Used to indicate the value that should be available inside the path. The RequestType of the album.
final

Methods

copyWith({String? id, String? name, int? assetCount, int? albumType = 1, DateTime? lastModified, RequestType? type, bool? isAll, FilterOptionGroup? filterOption}) AssetPathEntity
fetchPathProperties({FilterOptionGroup? filterOptionGroup}) Future<AssetPathEntity?>
Obtain a new AssetPathEntity from the current one with refreshed properties.
getAssetListPaged({required int page, required int size}) Future<List<AssetEntity>>
Entity list with pagination support.
getAssetListRange({required int start, required int end}) Future<List<AssetEntity>>
Getting assets in range using start and end.
getSubPathList() Future<List<AssetPathEntity>>
Request subpaths for the album.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
obtainForNewProperties({bool maxDateTimeToNow = true}) Future<AssetPathEntity>
Call this method to obtain new path entity.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override

Static Methods

fromId(String id, {FilterOptionGroup? filterOption, RequestType type = RequestType.common, int albumType = 1}) Future<AssetPathEntity>
Obtain an entity from ID.
obtainPathFromProperties({required String id, int albumType = 1, RequestType type = RequestType.common, FilterOptionGroup? optionGroup, bool maxDateTimeToNow = true}) Future<AssetPathEntity>
Call this method to obtain new path entity.