error static method

RouteQueueEntry error({
  1. required String path,
  2. NPage? nPage,
  3. Map params = const {},
  4. Object? groupId,
  5. Map queryParams = const {},
  6. ValueKey<String> pageKey = const ValueKey('errorPage'),
})

Implementation

static RouteQueueEntry error({
  required String path,
  NPage? nPage,
  Map params = const {},
  Object? groupId,
  Map queryParams = const {},
  ValueKey<String> pageKey = const ValueKey('errorPage'),
}) {
  return RouteQueueEntry._internal(
    path: path,
    nPage: nPage ?? NPage.errorNPage,
    params: params,
    queryParams: queryParams,
    groupId: groupId,
    pageKey: pageKey,
    id: -1,
  );
}