createEntry method

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

Implementation

RouteQueueEntry createEntry(NPage page,
    {Map<String, dynamic> params = const {},
    Map<String, dynamic>? extra,
    Object? groupId}) {
  // assert(rootPage.contains(page));

  return RouteQueueEntry(
    params: params,
    nPage: page,
    queryParams: extra ?? const {},
    groupId: groupId,
    pageKey: newPageKey(),
  );
}