animationOffset method

void animationOffset(
  1. Offset? begin,
  2. Offset end
)

Implementation

void animationOffset(Offset? begin, Offset end) {
  if (_offsetController == null) {
    return;
  }
  _offsetAnimation =
      _offsetController!.drive(Tween<Offset>(begin: begin, end: end));
  _offsetController!
    ..value = 0.0
    ..fling(velocity: velocity);
}