ModularApp constructor

ModularApp({
  1. Key? key,
  2. required Module module,
  3. required Widget child,
  4. bool debugMode = true,
  5. bool notAllowedParentBinds = false,
})

Implementation

ModularApp({
  Key? key,
  required this.module,
  required this.child,

  /// Home application containing the MaterialApp or CupertinoApp.
  bool debugMode = true,

  /// Prohibits taking any bind of parent modules, forcing the imports
  /// of the same in the current module to be accessed.
  /// This is the same behavior as the system. Default is false;
  bool notAllowedParentBinds = false,
}) : super(key: key) {
  (Modular as ModularBase).flags.experimentalNotAllowedParentBinds =
      notAllowedParentBinds;
  (Modular as ModularBase).flags.isDebug = debugMode;
}