getRoute method
Implementation
Route<dynamic> getRoute(String path, Map<String, dynamic>? parameters) {
final pagePath = path.split('/');
if (pagePath.length == 2) {
final appId = pagePath[0];
final pageId = pagePath[1];
return pageRouteBuilderWithAppId(accessBloc.state, appId,
pageId: pageId,
parameters: parameters,
page: Registry.registry()!
.page(appId: appId, pageId: pageId, parameters: parameters));
} else {
return error2('No route defined for $path');
}
}