Assets class

The Assets manager.

Constructors

Assets()

Properties

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

Methods

getBoolData(String key, Future<bool> parser(String value)) Future<bool>
getData<T>(String key, Future<T> parser(String value)) Future<T>?
getImage(String key, {AssetBundle? bundle, String? package}) AssetImage
getStringData(String key, Future<String> parser(String value)) Future<String?>
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

Static Methods

dispose() → void
getStreamF(String key) Future<ByteData>
getStringF(String key, {bool cache = true}) Future<String>
init(BuildContext context, {String? dir}) Future<bool>
setPath(String key) String?
Determine the appropriate path for the asset.