RoutePathShell constructor

const RoutePathShell({
  1. required List<_RouteBuilder> routes,
  2. Type? pageType,
  3. Function? builder,
  4. Function? pageBuilder,
  5. String? parentNavigatorKey,
  6. String? navigatorKey,
})

Implementation

const RoutePathShell({
  required this.routes,
  this.pageType,
  this.builder,
  this.pageBuilder,
  //
  this.parentNavigatorKey,
  this.navigatorKey,
}) : assert(
        (pageType != null ? 1 : 0) + (builder != null ? 1 : 0) + (pageBuilder != null ? 1 : 0) ==
            1,
        'use either [pageType], [builder] or [pageBuilder].',
      );