tweenValue<T> function

T tweenValue<T>(
  1. T begin,
  2. T end,
  3. double t
)

Implementation

T tweenValue<T>(T begin, T end, double t) {
  dynamic beginValue = begin;
  dynamic endValue = end;
  return (beginValue + (endValue - beginValue) * t) as T;
}