Linear interpolation between a and b where this is t ∈ [0, 1].
a
b
this
t ∈ [0, 1]
0.25.lerp(0, 100); // 25.0
double lerp(num a, num b) => (a + (b - a) * this).toDouble();