createRoute method

  1. @override
Route<T> createRoute(
  1. BuildContext context
)
override

Creates the Route that corresponds to this page.

The created Route must have its Route.settings property set to this Page.

Implementation

@override
Route<T> createRoute(BuildContext context) {
  return SwipeablePageRoute(
    canSwipe: canSwipe,
    canOnlySwipeFromEdge: canOnlySwipeFromEdge,
    backGestureDetectionWidth: backGestureDetectionWidth,
    backGestureDetectionStartOffset: backGestureDetectionStartOffset,
    transitionDuration: transitionDuration,
    reverseTransitionDuration: reverseTransitionDuration,
    transitionBuilder: transitionBuilder,
    builder: builder,
    title: title,
    settings: this,
    maintainState: maintainState,
    fullscreenDialog: fullscreenDialog,
    allowSnapshotting: allowSnapshotting,
  );
}