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

Constructors

LocalAssetLoader({required String fontPath, required String imagePath, AssetBundle? assetBundle})

Properties

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

Methods

load(FileAsset asset, Uint8List? embeddedBytes) 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