onTapRoute method

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

Route to a new page.

Implementation

InkWell onTapRoute(String routeName,
    {dynamic data,
    Map<String, dynamic>? queryParameters,
    NavigationType navigationType = NavigationType.push,
    dynamic result,
    bool Function(Route<dynamic> route)? removeUntilPredicate,
    PageTransitionSettings? pageTransitionSettings,
    PageTransitionType? pageTransition,
    Function(dynamic value)? onPop}) {
  return InkWell(
    onTap: () async {
      await routeTo(routeName,
          data: data,
          queryParameters: queryParameters,
          navigationType: navigationType,
          result: result,
          removeUntilPredicate: removeUntilPredicate,
          pageTransitionSettings: pageTransitionSettings,
          pageTransition: pageTransition,
          onPop: onPop);
    },
    child: this,
    splashColor: Colors.transparent,
    hoverColor: Colors.transparent,
    focusColor: Colors.transparent,
  );
}