navigate<T, T2> method

void navigate<T, T2>(
  1. ValueKey<String> key, {
  2. Object? arguments,
  3. Object? pageScope,
})

Navigates to a new page. Specify the page key, type of your state, and type argument for your router delegate

Implementation

void navigate<T, T2>(
  ValueKey<String> key, {
  Object? arguments,
  Object? pageScope,
}) =>
    get<PapilioRouterDelegate<T2>>()
        .navigate<T>(key, arguments: arguments, pageScope: pageScope);