buildRoute method
Returns the appropriate Route based on the transition type.
Implementation
Route buildRoute(BuildContext context, bool isDialog) {
if (isDialog) {
return customTransitionModule.buildDialogRoute(child, duration, curve, context);
} else {
return buildPageRoute();
}
}