computeValue method

  1. @override
double computeValue(
  1. Duration time
)
override

Returns the new value of the animation

Implementation

@override
double computeValue(Duration time) {
  if (predicate()) {
    completeTask();
  }

  return startedValue;
}