Asset class

Constructors

Asset(String _identifier, int? _originalWidth, int? _originalHeight, int? mediaType, int? duration, {int? fileId})

Properties

duration int?
getter/setter pair
editInfo Map?
编辑裁剪信息 path:file local path thumb: thumb file local path txt: text info mosaics: List<_MosaicModel> mosaicsPoints: List
getter/setter pair
fileId int?
final
hashCode int
The hash code for this object.
no setterinherited
identifier String
Returns the image identifier
no setter
isLandscape bool
Returns true if the image is landscape
no setter
isPortrait bool
Returns true if the image is Portrait
no setter
mediaType int?
getter/setter pair
mediaUrl String?
getter/setter pair
originalHeight int
Returns the original image height
no setter
originalWidth int
Returns the original image width
no setter
ration double
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getImageByteData({int quality = 70, int? maxWidth, int? maxHeight, bool ignoreEditInfo = false}) Future<Uint8List?>
Requests the original image for that asset.
getImageThumbByteData(int width, int height, {int quality = 100, bool needCached = false}) Future<Uint8List?>
Requests a thumbnail for the Asset with give width and hegiht.
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