AssetLoaderManager class

Core manager class that handles all asset bundling logic.

This class contains the implementation details for:

  • Package URI resolution using multiple strategies
  • File system operations and caching
  • Package root detection across different deployment scenarios
  • Error handling and recovery mechanisms

The manager is designed to be used by bundler implementations and should not be used directly by end users.

Constructors

AssetLoaderManager(String _packageName)
Creates a new bundler manager for the specified package.

Properties

hashCode int
The hash code for this object.
no setterinherited
packageName String
Gets the configured package name.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

assetExists(String relativePath) Future<bool>
Checks if an asset exists in the package.
clearCache() → void
Clears the internal cache.
getPackageRoot() Future<String?>
Gets the package root path.
loadAsset(String relativePath) Future<String>
Loads an asset from the package using multiple resolution strategies.
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