redirect method
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,
);
}