createRoute method
Implementation
@override
Route createRoute(RouteSettings settings, RouteOptions options) {
return PageRouteBuilder(
opaque: opaque ?? true,
settings: settings,
transitionsBuilder: transitionsBuilder ?? _customTransitionsBuilder,
transitionDuration: transitionDuration ?? defaultTransitionDuration,
reverseTransitionDuration: reverseTransitionDuration ?? defaultTransitionDuration,
barrierLabel: barrierLabel,
barrierColor: barrierColor,
maintainState: maintainState ?? true,
fullscreenDialog: fullscreenDialog ?? false,
allowSnapshotting: allowSnapshotting ?? true,
barrierDismissible: barrierDismissible ?? false,
pageBuilder: (context, _, __) => options.builder(settings.arguments as Map<String, dynamic>?),
);
}