Asset class

Constructors

Asset(String? _identifier, String? _name, int? _originalWidth, int? _originalHeight)

Properties

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
metadata Future<Metadata>
Requests the original image meta data
no setter
name String?
Returns the image name
no setter
originalHeight int?
Returns the original image height
no setter
originalWidth int?
Returns the original image width
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getByteData({int quality = 100}) Future<ByteData>
Requests the original image for that asset.
getThumbByteData(int width, int height, {int quality = 100}) Future<ByteData>
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
requestMetadata() Future<Metadata>
requestOriginal({int quality = 100}) Future<ByteData>
requestThumbnail(int width, int height, {int quality = 100}) Future<ByteData>
toString() String
A string representation of this object.
inherited

Operators

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