InjectorScopeWidget constructor
Creates an InjectorScopeWidget.
child: The widget subtree that will have access to the newInjector.providers: A list ofProviders to register in the newInjector.injector: Optional. Currently unused by the constructor, but kept for consistency with other widgets.
Implementation
const InjectorScopeWidget({required Widget child, super.key, required List<Provider> providers, Injector? injector})
: _providers = providers,
_child = child;