TwoDimensionalScrollable constructor
- Key? key,
- required ScrollableDetails horizontalDetails,
- required ScrollableDetails verticalDetails,
- required TwoDimensionalViewportBuilder viewportBuilder,
- ScrollIncrementCalculator? incrementCalculator,
- String? restorationId,
- bool excludeFromSemantics = false,
- DiagonalDragBehavior diagonalDragBehavior = DiagonalDragBehavior.none,
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- 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,
});