bouncy static method

ScrollBehaviorConfig bouncy({
  1. AutoScrollBehavior autoScrollBehavior = AutoScrollBehavior.onNewMessage,
  2. bool scrollToFirstResponseMessage = false,
  3. Duration duration = const Duration(milliseconds: 500),
})

Creates a bouncy scrolling configuration Adds a slight bounce effect at the end of the scroll

Implementation

static ScrollBehaviorConfig bouncy({
  AutoScrollBehavior autoScrollBehavior = AutoScrollBehavior.onNewMessage,
  bool scrollToFirstResponseMessage = false,
  Duration duration = const Duration(milliseconds: 500),
}) {
  return ScrollBehaviorConfig(
    autoScrollBehavior: autoScrollBehavior,
    scrollToFirstResponseMessage: scrollToFirstResponseMessage,
    scrollAnimationDuration: duration,
    scrollAnimationCurve: Curves.elasticOut,
  );
}