ScrollSpeed constructor

ScrollSpeed(
  1. BuildContext context, {
  2. required double speed,
})

Implementation

ScrollSpeed (this.context,{
  required this.speed,
  // bool? speedForMobileBrowserOnly = true
}  ){
  // this.speedForMobileBrowserOnly = speedForMobileBrowserOnly;

  /**
   * must every speed increase, to increase also animation time
   *   to avoid UX bug that scroll jump without animate
   */
  this.animateJumpTime = speed * 100;
}