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: _standardTransitionsBuilder(transitionType),
    transitionDuration: transitionDuration,
    reverseTransitionDuration: reverseTransitionDuration,
    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>?),
  );
}