animatedOffset method
Implementation
Future animatedOffset(
Offset offset, {
Duration? duration,
Curve? curve,
}) async {
if (duration != null) {
_buttonAC.duration = duration;
}
_offsetTween = Tween<Offset>(
begin: offsetNotifier.value,
end: offset,
).animate(
CurvedAnimation(
parent: _buttonAC,
curve: curve ?? stickyAnimation,
),
);
_buttonAC.reset();
_buttonAC.forward();
}