TwoDimensionalScrollable constructor

const TwoDimensionalScrollable({
  1. Key? key,
  2. required ScrollableDetails horizontalDetails,
  3. required ScrollableDetails verticalDetails,
  4. required TwoDimensionalViewportBuilder viewportBuilder,
  5. ScrollIncrementCalculator? incrementCalculator,
  6. String? restorationId,
  7. bool excludeFromSemantics = false,
  8. DiagonalDragBehavior diagonalDragBehavior = DiagonalDragBehavior.none,
  9. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  10. HitTestBehavior hitTestBehavior = HitTestBehavior.opaque,
})

Creates a widget that scrolls in two dimensions.

The horizontalDetails, verticalDetails, and viewportBuilder must not be null.

Implementation

const TwoDimensionalScrollable({
  super.key,
  required this.horizontalDetails,
  required this.verticalDetails,
  required this.viewportBuilder,
  this.incrementCalculator,
  this.restorationId,
  this.excludeFromSemantics = false,
  this.diagonalDragBehavior = DiagonalDragBehavior.none,
  this.dragStartBehavior = DragStartBehavior.start,
  this.hitTestBehavior = HitTestBehavior.opaque,
});