lerpEnum<T> function

T? lerpEnum<T>(
  1. T? a,
  2. T? b,
  3. double t
)

Implementation

T? lerpEnum<T>(T? a, T? b, double t) => t < 0.5 ? a : b;