ModuleCreator class
Builds module instances from factories, enforcing supports(profile) and populating transitive dependencies from the registry.
Constructors
-
ModuleCreator.new(ModuleDependencyResolver resolver, Map<
String, IModuleContributorFactory> registry, {List<String> coreModuleKeys = const <String>[]}) -
Creates a new ModuleCreator with the specified dependencies.
const
Properties
-
coreModuleKeys
→ List<
String> -
List of core module keys that are automatically included.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
registry
→ Map<
String, IModuleContributorFactory> -
Registry mapping module names to their factory implementations.
final
- resolver → ModuleDependencyResolver
-
Resolver for determining module dependency order.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
build(
List< IModuleContributorFactory> rootFactories, ModuleProfile profile, {required StrictMode strictMode, Logger? logger}) → List<IModuleCodeContributor> -
Builds module instances using
rootFactories
andprofile
. -
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