Asset class
This call fetches the latest version of a specific
asset
of a particular stack.
Read more about
Learn more about Assets
Constructors
Properties
-
assetParameter
→ Map<
String, String> -
final
- 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
-
environment(
String environment) → void - Enter the name of the environment if you wish to retrieve the assets published in a particular environment. environment required
-
fetch<
T, K> () → Future< T> - It fetch single asset data on the basis of the asset uid.
-
includeDimension(
) → void - include the dimensions (height and width) of the image in the response. Supported image types: JPG, GIF, PNG, WebP, BMP, TIFF, SVG, and PSD.
-
includeFallback(
) → void - Retrieve the published content of the fallback locale if an entry is not localized in specified locale.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
version(
int version) → void - Specify the version number of the asset that you wish to retrieve. If the version is not specified, the details of the latest version will be retrieved. To retrieve a specific version, keep the environment parameter blank. version required
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited