FlutterGetIt constructor

const FlutterGetIt({
  1. Key? key,
  2. required ApplicationBuilder builder,
  3. ApplicationBindingsBuilder? bindingsBuilder,
  4. ApplicationBindings? bindings,
  5. List<FlutterGetItModule>? modules,
  6. List<FlutterGetItPageRouterInterface>? pages,
  7. 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)');