AssetLoader class abstract

abstract class used to building your Custom AssetLoader Example:

class FileAssetLoader extends AssetLoader {
 @override
 Future<Map<String, dynamic>> load(String path, Locale locale) async {
   final file = File(path);
   return json.decode(await file.readAsString());
 }
}
Implementers

Constructors

AssetLoader()
const

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

load(String path, Locale locale) Future<Map<String, dynamic>?>
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