XAsset class
A single asset (photo or video) in the system library
(PHAsset / ContentResolver row).
Constructors
Properties
- createdAt → DateTime
-
When the asset was captured, as the library records it.
final
- duration → Duration?
-
Duration for videos; null for photos.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → int
-
Pixel height of the full-size asset.
final
- id → String
-
Stable identifier (e.g. iOS
localIdentifier, Androidcontent://URI).final - kind → XAssetKind
-
Whether this is a photo or a video.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- width → int
-
Pixel width of the full-size asset.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited