Skip to content
modularity_coreClassesmodularity_core

modularity_core

Core implementation of the Modularity dependency-injection framework.

Re-exports everything from modularity_contracts and adds:

dart
import 'package:modularity_core/modularity_core.dart';

final controller = ModuleController(AppModule());
await controller.initialize({});

Classes

ClassDescription
ConsoleLoggerDefault ModularityLogger that forwards messages to dart:developer via developer.log.
ModuleControllerManages the full lifecycle of a single Module: dependency resolution, initialization, hot reload, and disposal.
ModuleOverrideScopeHierarchical tree of BinderOverrides that mirrors the module import graph.
ModuleRegistryKeyComposite key used in the global module registry to differentiate ModuleController instances by both their runtime Type and ModuleOverrideScope.
SimpleBinderPure-Dart, map-based Binder implementation with no external dependencies.
SimpleBinderFactoryDefault BinderFactory that produces SimpleBinder instances.

Typedefs

TypedefDescription
BinderOverrideCallback that applies dependency overrides to the given Binder.