scrollTo method

void scrollTo(
  1. double offset, {
  2. bool animate = false,
  3. Curve curve = Curves.easeInOut,
})

Implementation

void scrollTo(
  double offset, {
  bool animate = false,
  Curve curve = Curves.easeInOut,
}) {
  if (_filterCallback == null) {
    return;
  }
  if (animate) {
    value.scrollController?.animateTo(
      offset,
      duration: const Duration(milliseconds: 500),
      curve: curve,
    );
  } else {
    value.scrollController?.jumpTo(offset);
  }
}