time property Null safety

double time

Returns the current time position of the animation in seconds


double get time => _time;
void time=(double value)

Note that when time is set, the direction will be changed to 1


set time(double value) {
  if (_time == value) {
  // Make sure to keep last and total in relative lockstep so state machines
  // can track change even when setting time.
  var diff = _totalTime - _lastTotalTime;
  _time = _totalTime = value;
  _lastTotalTime = _totalTime - diff;
  _direction = 1;