AssetLoaderBase class abstract

AssetLoaderBase abstract class used to building your Custom AssetLoader Example:

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

Constructors

AssetLoaderBase.new()
AssetLoaderBase constructor
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([JsonMapperBase? base]) Future<Map<String, dynamic>>
load method used to load the json file from the path
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