WebFScrollable constructor

WebFScrollable({
  1. required FlutterView currentView,
  2. AxisDirection axisDirection = AxisDirection.down,
  3. CSSOverflowType overflowType = CSSOverflowType.scroll,
  4. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  5. ScrollListener? scrollListener,
  6. 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);
}