tick method
Implementation
void tick(Duration delta) {
if (_requests.isNotEmpty) {
final request = _requests.removeAt(0);
_runner = AnimationRunner(
_value, request.target, request.duration, request.curve);
}
final runner = _runner;
if (runner != null) {
runner._progress += delta.inMilliseconds / runner.duration.inMilliseconds;
_value = runner.from +
(runner.to - runner.from) *
runner.curve.transform(runner._progress.clamp(0, 1));
if (runner._progress >= 1.0) {
_runner = null;
}
notifyListeners();
}
}