onTapRoute method
InkWell
onTapRoute(
- dynamic routeName, {
- dynamic data,
- dynamic result,
- bool removeUntilPredicate(
- Route route
- PageTransitionSettings? pageTransitionSettings,
- PageTransitionType? pageTransitionType,
- dynamic onPop(
- 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,
);
}