createRoute method

  1. @override
Route createRoute(
  1. RouteSettings settings,
  2. RouteOptions options
)
override

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>?),
  );
}