PathWrapper<Path> class

A wrapper that holds Path with it's nullable (late initialize) fields.

The asset count usually backed by AssetPathEntity.assetCountAsync, and the thumbnail usually backed by AssetEntity.thumbnailData. These methods are asynchronous and called separately for better performance. After calls, use copyWith to update paths to avoid unnecessary waits.

Annotations

Constructors

PathWrapper({required Path path, int? assetCount, Uint8List? thumbnailData})
const

Properties

assetCount int?
The total asset count of the path.
final
hashCode int
The hash code for this object.
no setteroverride
path → Path
Typically an AssetPathEntity.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
thumbnailData Uint8List?
The thumbnail (first asset) data of the path.
final

Methods

copyWith({int? assetCount, Uint8List? thumbnailData}) PathWrapper<Path>
Creates a modified copy of the object.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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