PlutoScrollbar constructor

const PlutoScrollbar({
  1. Key? key,
  2. ScrollController? horizontalController,
  3. ScrollController? verticalController,
  4. bool isAlwaysShown = false,
  5. double thickness = defaultThickness,
  6. double thicknessWhileDragging = defaultThicknessWhileDragging,
  7. Radius radius = defaultRadius,
  8. Radius radiusWhileDragging = defaultRadiusWhileDragging,
  9. required Widget child,
})

Implementation

const PlutoScrollbar({
  Key? key,
  this.horizontalController,
  this.verticalController,
  this.isAlwaysShown = false,
  this.thickness = defaultThickness,
  this.thicknessWhileDragging = defaultThicknessWhileDragging,
  this.radius = defaultRadius,
  this.radiusWhileDragging = defaultRadiusWhileDragging,
  required this.child,
})  : assert(thickness < double.infinity),
      assert(thicknessWhileDragging < double.infinity),
      assert(!isAlwaysShown ||
          (horizontalController != null || verticalController != null)),
      super(key: key);