animationOffset method
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);
}