StandardRouterDelegate constructor

StandardRouterDelegate({
  1. required BuildContext context,
  2. required List<StandardPageWithResultFactory<StandardPageWithResult<Object?, Object?>, Object?, Object?>> pageFactories,
  3. StandardAppType appType = StandardAppType.material,
  4. Widget routableBuilder(
    1. BuildContext context,
    2. Widget? child
    )?,
  5. void onDidRemovePage(
    1. Page page
    )?,
})

Create a StandardRouterDelegate

Implementation

StandardRouterDelegate({
  required this.context,
  required List<StandardPageWithResultFactory> pageFactories,
  StandardAppType appType = StandardAppType.material,
  this.routableBuilder,
  this.onDidRemovePage,
}) : _appType = appType,
     assert(pageFactories.isNotEmpty) {
  _updatePageFactories(pageFactories);
}