onTapRoute method

InkWell onTapRoute(
  1. dynamic 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? pageTransitionType,
  9. dynamic onPop(
    1. dynamic value
    )?,
})

Route to a new page.

Implementation

InkWell onTapRoute(dynamic routeName,
    {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}) {
  if (routeName is RouteView) {
    routeName = routeName.name;
  }
  return InkWell(
    onTap: () async {
      await routeTo(routeName,
          data: data,
          queryParameters: queryParameters,
          navigationType: navigationType,
          result: result,
          removeUntilPredicate: removeUntilPredicate,
          pageTransitionSettings: pageTransitionSettings,
          pageTransitionType: pageTransitionType,
          onPop: onPop);
    },
    splashColor: Colors.transparent,
    hoverColor: Colors.transparent,
    focusColor: Colors.transparent,
    child: this,
  );
}