navigateTo method

dynamic navigateTo({
  1. dynamic data,
  2. Map<String, dynamic>? queryParameters,
  3. NavigationType navigationType = NavigationType.push,
  4. dynamic result,
  5. bool removeUntilPredicate(
    1. Route route
    )?,
  6. PageTransitionSettings? pageTransitionSettings,
  7. PageTransitionType? pageTransitionType,
  8. dynamic onPop(
    1. dynamic value
    )?,
})

Route to a new page.

Implementation

navigateTo(
    {dynamic data,
    Map<String, dynamic>? queryParameters,
    NavigationType navigationType = NavigationType.push,
    dynamic result,
    bool Function(Route<dynamic> route)? removeUntilPredicate,
    PageTransitionSettings? pageTransitionSettings,
    PageTransitionType? pageTransitionType,
    Function(dynamic value)? onPop}) {
  return routeTo(name,
      data: data,
      queryParameters: queryParameters,
      navigationType: navigationType,
      result: result,
      removeUntilPredicate: removeUntilPredicate,
      pageTransitionSettings: pageTransitionSettings,
      pageTransitionType: pageTransitionType,
      onPop: onPop);
}