AssetMetadata class

Contains information about an asset.

Annotations

Constructors

AssetMetadata({required String key, required double? targetDevicePixelRatio, required bool main})
Creates an object containing information about an asset.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
key String
The asset's key, which is the path to the asset specified in the pubspec.yaml file at build time.
final
main bool
Whether or not this is a main asset. In other words, this is true if this asset is not a variant of another asset.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
targetDevicePixelRatio double?
The device pixel ratio that this asset is most ideal for. This is determined by the name of the parent folder of the asset file. For example, if the parent folder is named "3.0x", the target device pixel ratio of that asset will be interpreted as 3.
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