App constructor

App({
  1. Key? key,
  2. required Iterable<Module> modules,
  3. required AppBuilder builder,
  4. bool? webPathUrls,
  5. Widget loading = const SizedBox.shrink(),
  6. AppErrorBuilder errorBuilder = _defaultErrorBuilder,
})

Creates an application that installs modules in declaration order.

Implementation

App({
  super.key,
  required this.modules,
  required this.builder,
  this.webPathUrls,
  this.loading = const SizedBox.shrink(),
  this.errorBuilder = _defaultErrorBuilder,
}) {
  final pathUrls = webPathUrls;
  if (pathUrls != null) _configureWebUrlStrategy(pathUrls);
}