scrollBy method

void scrollBy({
  1. num dx = 0.0,
  2. num dy = 0.0,
  3. bool? withAnimation,
})
inherited

Implementation

void scrollBy({ num dx = 0.0, num dy = 0.0, bool? withAnimation }) {
  if (dx != 0) {
    _scroll(scrollLeft + dx, Axis.horizontal, withAnimation: withAnimation);
  }
  if (dy != 0) {
    _scroll(scrollTop + dy, Axis.vertical, withAnimation: withAnimation);
  }
}