AssetPath class

Constructors

AssetPath({String rootDir = 'assets'})
const

Properties

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

Methods

data(String name, String ext) String
Refers to assets/data/name.ext
icon(String name, [String ext = 'png']) String
Refers to assets/icons/name.ext Default ext is 'png'.
image(String name, [String ext = 'png']) String
Refers to assets/images/name.ext Default ext is 'png'.
localization(String name, [String ext = 'json']) String
Refers to assets/localization/name.ext Default ext is 'json'.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
raw(String name, String ext) String
Refers to assets/raw/name.ext
root(String path) String
Refers to assets/path
svg(String name) String
Refers to assets/icons/name.svg
toString() String
A string representation of this object.
inherited

Operators

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