lerp method

double lerp(
  1. num a,
  2. num b
)

Linear interpolation between a and b where this is t ∈ [0, 1].

0.25.lerp(0, 100); // 25.0

Implementation

double lerp(num a, num b) => (a + (b - a) * this).toDouble();