ProjectAssets class

Finds the image files a Flutter project's asset names refer to, the way Flutter's asset bundle does: relative to the project (or to a package for packages/<name>/... and package: arguments), preferring the highest resolution variant (2.0x/, 3.0x/ folders next to the file).

Constructors

ProjectAssets(String root)

Properties

hashCode → int
The hash code for this object.
no setterinherited
root → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolve(String name, {String? package}) → AssetLookup
The image behind asset name, or why it can't be exported.
toString() → String
A string representation of this object.
inherited

Operators

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