AssetLoader class abstract interface

Abstraction for loading Flutter assets Platform-specific implementations handle asset loading differently

Platform implementations:

  • FlutterAssetLoader: uses rootBundle for Flutter apps
  • WebAssetLoader: uses fetch API for web
  • TestAssetLoader: loads from test fixtures for testing
Implementers

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

loadAsset(String path) Future<Uint8List>
Loads an asset as bytes from the given 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