DismissiblePage constructor

const DismissiblePage({
  1. required Widget child,
  2. required VoidCallback onDismissed,
  3. VoidCallback? onDragStart,
  4. VoidCallback? onDragEnd,
  5. ValueChanged<DismissiblePageDragUpdateDetails>? onDragUpdate,
  6. bool isFullScreen = true,
  7. bool disabled = false,
  8. Color backgroundColor = Colors.black,
  9. DismissiblePageDismissDirection direction = DismissiblePageDismissDirection.vertical,
  10. Map<DismissiblePageDismissDirection, double> dismissThresholds = const <DismissiblePageDismissDirection, double>{},
  11. DragStartBehavior dragStartBehavior = DragStartBehavior.down,
  12. double dragSensitivity = 0.7,
  13. double minRadius = 7,
  14. double minScale = .85,
  15. double maxRadius = 30,
  16. double maxTransformValue = .4,
  17. double startingOpacity = 1,
  18. HitTestBehavior hitTestBehavior = HitTestBehavior.opaque,
  19. Duration reverseDuration = const Duration(milliseconds: 200),
  20. Key? key,
})

Implementation

const DismissiblePage({
  required this.child,
  required this.onDismissed,
  this.onDragStart,
  this.onDragEnd,
  this.onDragUpdate,
  this.isFullScreen = true,
  this.disabled = false,
  this.backgroundColor = Colors.black,
  this.direction = DismissiblePageDismissDirection.vertical,
  this.dismissThresholds = const <DismissiblePageDismissDirection, double>{},
  this.dragStartBehavior = DragStartBehavior.down,
  this.dragSensitivity = 0.7,
  this.minRadius = 7,
  this.minScale = .85,
  this.maxRadius = 30,
  this.maxTransformValue = .4,
  this.startingOpacity = 1,
  this.hitTestBehavior = HitTestBehavior.opaque,
  this.reverseDuration = const Duration(milliseconds: 200),
  Key? key,
}) : super(key: key);