lerp<T> static method

ButtonState<T?>? lerp<T>(
  1. ButtonState<T?>? a,
  2. ButtonState<T?>? b,
  3. double t,
  4. T? lerpFunction(
    1. T?,
    2. T?,
    3. double
    ),
)

Implementation

static ButtonState<T?>? lerp<T>(
  ButtonState<T?>? a,
  ButtonState<T?>? b,
  double t,
  T? Function(T?, T?, double) lerpFunction,
) {
  if (a == null && b == null) return null;
  return _LerpProperties<T>(a, b, t, lerpFunction);
}