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 _PageBasedSheetRoute<T>(
    page: this,
    physics: physics,
    fit: fit,
    stops: stops,
    initialExtent: initialExtent,
    barrierDismissible: barrierDismissible,
    barrierColor: barrierColor,
    draggable: draggable,
    animationCurve: animationCurve,
    duration: transitionDuration,
    decorationBuilder: decorationBuilder,
  );
}