RoutePathStatefulShell constructor

const RoutePathStatefulShell({
  1. required List<RoutePathBranch> branches,
  2. required Function navigatorContainerBuilder,
  3. Type? pageType,
  4. Function? builder,
  5. Function? pageBuilder,
  6. String? parentNavigatorKey,
})

Implementation

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