WebFScrollable constructor
WebFScrollable({
- required FlutterView currentView,
- AxisDirection axisDirection = AxisDirection.down,
- CSSOverflowType overflowType = CSSOverflowType.scroll,
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- ScrollListener? scrollListener,
- Set<
PointerDeviceKind> dragDevices = _kTouchLikeDeviceTypes,
Implementation
WebFScrollable({
required this.currentView,
AxisDirection axisDirection = AxisDirection.down,
CSSOverflowType overflowType = CSSOverflowType.scroll,
this.dragStartBehavior = DragStartBehavior.start,
this.scrollListener,
this.dragDevices = _kTouchLikeDeviceTypes}) {
_axisDirection = axisDirection;
_overflowType = overflowType;
position = ScrollPositionWithSingleContext(physics: _physics, context: this, oldPosition: null, devicePixelRatio: currentView.devicePixelRatio);
}