createChildRouteInstance method

RouteInstance createChildRouteInstance({
  1. String parameters = '',
  2. String? title,
  3. dynamic extraInformation,
})

Implementation

RouteInstance createChildRouteInstance(
    {String parameters = '', String? title, dynamic extraInformation}) {
  return parameters == ''
      ? _routeStack[routePath]!
      : _routeStack[routePath + '/' + parameters] ??
          RouteInstance(
              routePath: routePath,
              pageBuilder: pageBuilder,
              title: title ?? childPageTitleBuilder(parameters, this.title),
              parameters: parameters,
              extraInformation: extraInformation);
}