redirect method

RouteQueueEntry redirect({
  1. required Map<String, dynamic> params,
  2. required NPage page,
  3. Map<String, dynamic> queryParams = const {},
  4. Object? groupId,
})

Implementation

RouteQueueEntry redirect({
  required Map<String, dynamic> params,
  required NPage page,
  Map<String, dynamic> queryParams = const {},
  Object? groupId,
}) {
  assert(isAlone && !attached);
  _disposed = true;

  return RouteQueueEntry(
    nPage: page,
    params: params,
    queryParams: queryParams,
    groupId: groupId,
    pageKey: _pageKey,
  );
}