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}) {
  if (!mounted) return;
  if (target != 0.0) {
    _scope?.registerOpenRow(this);
  } else {
    _scope?.unregisterRow(this);
  }
  _animateTo(target, animated: animated);
}