FlutterGetIt constructor
const
FlutterGetIt({
- Key? key,
- required ApplicationBuilder builder,
- ApplicationBindingsBuilder? bindingsBuilder,
- ApplicationBindings? bindings,
- List<
FlutterGetItModule> ? modules, - List<
FlutterGetItPageRouterInterface> ? pages, - bool debugMode = false,
Implementation
const FlutterGetIt({
super.key,
required this.builder,
this.bindingsBuilder,
this.bindings,
this.modules,
this.pages,
this.debugMode = false,
}) : assert(
(bindingsBuilder != null && bindings == null ||
bindingsBuilder == null && bindings != null ||
bindingsBuilder == null && bindings == null),
'You must send only one of the attributes (bindingBuilder or bindings)');