RouteInstance constructor
RouteInstance({})
Implementation
RouteInstance(
{required this.routePath,
required this.pageBuilder,
String? title,
this.parameters = '',
this.extraInformation,
String Function(String parentTitle, String path)? childPageTitleBuilder})
: path = parameters == ''
? '/' + routePath
: '/' + routePath + '/' + parameters,
title = title ?? routePath,
widget =
AsyncLoadPage(future: pageBuilder(parameters, extraInformation)),
childPageTitleBuilder = childPageTitleBuilder ??
((parameters, parentTitle) => parentTitle) {
_routeStack[path.substring(1)] = this;
}