animateToOffset method

void animateToOffset(
  1. double target, {
  2. bool animated = true,
})

Programmatically animates to a specific horizontal offset in logical pixels.

Implementation

void animateToOffset(double target, {bool animated = true}) {
  _state?.animateToOffset(target, animated: animated);
}