animateTo method

void animateTo(
  1. int newOffset
)

Scrolls to the given newOffset.

Implementation

void animateTo(int newOffset) {
  offset = newOffset;
}