FlutterGetIt constructor
const
FlutterGetIt({
- Key? key,
- ApplicationBuilder? builder,
- ApplicationBuilderPath? builderPath,
- FlutterGetItBindings? bindings,
- List<
FlutterGetItMiddleware> ? middlewares, - List<
FlutterGetItModule> ? modules, - List<
FlutterGetItPageRouter> ? pagesRouter, - List<
FlutterGetItModuleRouter> ? modulesRouter, - FGetItLoggerConfig? loggerConfig,
Implementation
const FlutterGetIt({
super.key,
this.builder,
this.builderPath,
this.bindings,
this.middlewares,
this.modules,
this.pagesRouter,
this.modulesRouter,
this.loggerConfig,
}) : contextType = FlutterGetItContextType.main,
name = null,
assert((builder == null) != (builderPath == null),
'Please use either Builder or BuilderPath, not both.');