lerpDuration function Null safety
Linearly interpolate between two Duration
s.
Implementation
Duration lerpDuration(Duration a, Duration b, double t) {
return Duration(
microseconds: (a.inMicroseconds + (b.inMicroseconds - a.inMicroseconds) * t).round(),
);
}