SwipeablePage<T> constructor

SwipeablePage<T>({
  1. bool canSwipe = true,
  2. bool canOnlySwipeFromEdge = false,
  3. double backGestureDetectionWidth = kMinInteractiveDimension,
  4. double backGestureDetectionStartOffset = 0.0,
  5. Duration? transitionDuration,
  6. Duration? reverseTransitionDuration,
  7. SwipeableTransitionBuilder? transitionBuilder,
  8. String? title,
  9. LocalKey? key,
  10. String? name,
  11. Object? arguments,
  12. String? restorationId,
  13. bool maintainState = true,
  14. bool fullscreenDialog = false,
  15. bool allowSnapshotting = true,
  16. required WidgetBuilder builder,
})

Implementation

SwipeablePage({
  this.canSwipe = true,
  this.canOnlySwipeFromEdge = false,
  this.backGestureDetectionWidth = kMinInteractiveDimension,
  this.backGestureDetectionStartOffset = 0.0,
  this.transitionDuration,
  this.reverseTransitionDuration,
  SwipeableTransitionBuilder? transitionBuilder,
  this.title,
  super.key,
  super.name,
  super.arguments,
  super.restorationId,
  this.maintainState = true,
  this.fullscreenDialog = false,
  this.allowSnapshotting = true,
  required this.builder,
}) : transitionBuilder = transitionBuilder ??
          SwipeablePageRoute._defaultTransitionBuilder(fullscreenDialog);