LocalAssetLoader class
Convenience class for loading assets from the local file system.
Specify the fontPath and imagePath to load assets from the asset bundle.
If more control is desired, extend FileAssetLoader and override load.
- Inheritance
-
- Object
- FileAssetLoader
- LocalAssetLoader
Constructors
- LocalAssetLoader({required String fontPath, required String imagePath, AssetBundle? assetBundle})
Properties
Methods
-
isCompatible(
FileAsset asset) → bool -
inherited
-
load(
FileAsset asset) → Future< bool> -
override
-
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