scrollToTop method
void
scrollToTop()
Implementation
void scrollToTop() async {
widget.onPromptTap?.call();
await _scrollController.animateTo(
_position.minScrollExtent,
duration: widget.scrollToTopDuration,
curve: widget.scrollToTopCurve,
);
if (mounted) {
setState(() {
_scrollTopAtOffset = false;
});
}
}