ScrollWrapper constructor

ScrollWrapper({
  1. Key? key,
  2. required ScrollController scrollController,
  3. double promptScrollOffset = 200,
  4. required Widget child,
  5. Curve scrollToTopCurve = Curves.fastOutSlowIn,
  6. Duration scrollToTopDuration = const Duration(milliseconds: 500),
  7. Duration promptDuration = const Duration(milliseconds: 500),
  8. Curve promptAnimationCurve = Curves.fastOutSlowIn,
  9. Alignment promptAlignment = Alignment.topRight,
  10. PromptButtonTheme? promptTheme,
  11. PromptAnimation promptAnimationType = PromptAnimation.size,
  12. ReplacementBuilder? promptReplacementBuilder,
})

Implementation

ScrollWrapper({
  Key? key,
  required this.scrollController,
  this.promptScrollOffset = 200,
  required this.child,
  this.scrollToTopCurve = Curves.fastOutSlowIn,
  this.scrollToTopDuration = const Duration(milliseconds: 500),
  this.promptDuration = const Duration(milliseconds: 500),
  this.promptAnimationCurve = Curves.fastOutSlowIn,
  this.promptAlignment = Alignment.topRight,
  this.promptTheme,
  this.promptAnimationType = PromptAnimation.size,
  this.promptReplacementBuilder,
}) : super(key: key);