Asset class

Constructors

Asset(String _identifier, int _originalWidth, int _originalHeight, { String filePath })

Properties

filePath ↔ String
The file path
read / write
getPath → String
Returns the file image path
read-only
identifier → String
Returns the image identifier
read-only
imageData ByteData
Returns the original image data
read-only
isLandscape → bool
Returns true if the image is landscape
read-only
isPortrait → bool
Returns true if the image is Portrait
read-only
originalHeight → int
Returns the original image height
read-only
originalWidth → int
Returns the original image width
read-only
thumbData ByteData
Returns the thumb data if it was loaded
read-only
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

release() → void
Releases both the thumb and original image data. [...]
releaseOriginal() → void
Releases the original image data. [...]
releaseThumb() → void
Releases the thumb data. [...]
requestOriginal() → Future
Requests the original image for that asset. [...]
requestThumbnail(int width, int height) → Future
Requests a thumbnail for the Asset with give width and hegiht. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited