lerpEnum<T> function

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

Linearly interpolate between two enum.

Implementation

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