lerp static method

ElevatedButtonThemeData? lerp(
  1. ElevatedButtonThemeData? a,
  2. ElevatedButtonThemeData? b,
  3. double t
)

Linearly interpolate between two elevated button themes.

Implementation

static ElevatedButtonThemeData? lerp(ElevatedButtonThemeData? a, ElevatedButtonThemeData? b, double t) {
  if (identical(a, b)) {
    return a;
  }
  return ElevatedButtonThemeData(
    style: ButtonStyle.lerp(a?.style, b?.style, t),
  );
}