bouncy static method
ScrollBehaviorConfig
bouncy({
- AutoScrollBehavior autoScrollBehavior = AutoScrollBehavior.onNewMessage,
- bool scrollToFirstResponseMessage = false,
- 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,
);
}