lerp static method

Linearly interpolate between two text button themes.

Implementation

static ContainedButtonThemeData? lerp(ContainedButtonThemeData? a, ContainedButtonThemeData? b, double t) {
  if (a == null && b == null) return null;
  return ContainedButtonThemeData(
    style: ButtonStyle.lerp(a?.style, b?.style, t)!,
    colors: b?.colors,
    uppercase: b?.uppercase ?? true,
  );
}