scrollTo method

void scrollTo({
  1. num? x,
  2. num? y,
  3. bool? withAnimation,
})
inherited

Implementation

void scrollTo({ num? x, num? y, bool? withAnimation }) {
  if (x != null) {
    _scroll(x, Axis.horizontal, withAnimation: withAnimation);
  }

  if (y != null) {
    _scroll(y, Axis.vertical, withAnimation: withAnimation);
  }
}