ScrollPosController constructor

ScrollPosController({
  1. int itemCount = 0,
  2. bool animate = true,
  3. Duration animationDuration = _kDefaultAnimationDuration,
  4. Curve animationCurve = _kDefaultAnimationCurve,
  5. double initialScrollOffset = 0.0,
  6. bool keepScrollOffset = true,
  7. String? debugLabel,
})

Implementation

ScrollPosController({
  this.itemCount = 0,
  this.animate = true,
  this.animationDuration = _kDefaultAnimationDuration,
  this.animationCurve = _kDefaultAnimationCurve,
  double initialScrollOffset = 0.0,
  bool keepScrollOffset = true,
  String? debugLabel,
}) : super(
        initialScrollOffset: initialScrollOffset,
        keepScrollOffset: keepScrollOffset,
        debugLabel: debugLabel,
      );