createRoute method

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

Implementation

@override
Route<dynamic> createRoute(RouteSettings settings, RouteOptions options) {
  return MaterialPageRoute(
    settings: settings,
    maintainState: maintainState ?? true,
    fullscreenDialog: fullscreenDialog ?? false,
    allowSnapshotting: allowSnapshotting ?? true,
    barrierDismissible: barrierDismissible ?? false,
    builder: (context) => options.builder(settings.arguments as Map<String, dynamic>?),
  );
}