Skip to content
modularity_get_itClassesmodularity_get_it

modularity_get_it

Standalone GetIt adapter for the Modularity dependency injection framework.

Provides a GetItBinder backed by a single GetIt instance with support for RegistrationAwareBinder strategies (replace vs preserve-existing) and a GetItBinderFactory for use with ModularityRoot.

Usage

dart
ModularityRoot(
  binderFactory: const GetItBinderFactory(),
  child: const MyApp(),
)

For injectable integration, use the modularity_injectable package instead, which manages separate private/public containers.

Classes

ClassDescription
GetItBinderStandalone Binder implementation backed by a single scoped GetIt instance, with RegistrationAwareBinder support for strategy switching.
GetItBinderFactoryBinderFactory that produces standalone GetItBinder instances.