onTapRoute method

InkWell onTapRoute(
  1. dynamic routeName, {
  2. dynamic data,
  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

InkWell onTapRoute(dynamic routeName,
    {dynamic data,
    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,
          navigationType: navigationType,
          result: result,
          removeUntilPredicate: removeUntilPredicate,
          pageTransitionSettings: pageTransitionSettings,
          pageTransitionType: pageTransitionType,
          onPop: onPop);
    },
    splashColor: Colors.transparent,
    hoverColor: Colors.transparent,
    focusColor: Colors.transparent,
    child: this,
  );
}