Slidable constructor

const Slidable({
  1. Key? key,
  2. SlidableController? controller,
  3. Object? groupTag,
  4. bool enabled = true,
  5. bool closeOnScroll = true,
  6. ActionPane? startActionPane,
  7. ActionPane? endActionPane,
  8. Axis direction = Axis.horizontal,
  9. DragStartBehavior dragStartBehavior = DragStartBehavior.down,
  10. bool useTextDirection = true,
  11. required Widget child,
  12. double endGestureWidth = 25,
  13. double startGestureWidth = 25,
  14. double gestureHeight = 50,
  15. VoidCallback? onDragStart,
  16. double? startPadding,
  17. double? endPadding,
})

Creates a Slidable.

The enabled, closeOnScroll, direction, dragStartBehavior, useTextDirection and child arguments must not be null.

Implementation

const Slidable(
    {Key? key,
    this.controller,
    this.groupTag,
    this.enabled = true,
    this.closeOnScroll = true,
    this.startActionPane,
    this.endActionPane,
    this.direction = Axis.horizontal,
    this.dragStartBehavior = DragStartBehavior.down,
    this.useTextDirection = true,
    required this.child,
    this.endGestureWidth = 25,
    this.startGestureWidth = 25,
    this.gestureHeight = 50,
    this.onDragStart,
    this.startPadding,
    this.endPadding})
    : super(key: key);