ScrollSpeed constructor
ScrollSpeed(
- BuildContext context, {
- 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;
}