FederatedModuleLoader class

Loader for federated modules

Constructors

FederatedModuleLoader()
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
loadedModules → List<String>
Get all loaded module IDs
no setter
registeredModules → List<FederatedModuleConfig>
Get all registered module configs
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

clear() → void
Clear all registrations and loaded modules (for testing)
isLoaded(String moduleId) → bool
Check if a module is loaded
isRegistered(String moduleId) → bool
Check if a module is registered
load<T>(String moduleId) → Future<T?>
Load a module by ID
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerFactory<T>(String moduleId, String packageName, Future<T> factory(), {String? version}) → void
Register a module factory
toString() → String
A string representation of this object.
inherited
unload(String moduleId) → void
Unload a module

Operators

operator ==(Object other) → bool
The equality operator.
inherited