RoutePathStatefulStackShell constructor

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

Implementation

const RoutePathStatefulStackShell({
  required this.branches,
  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].',
      );