lerp static method

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

Linearly interpolate between two filled button themes.

Implementation

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