lerp static method

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

Linearly interpolate between two text button themes.

Implementation

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