lerp static method

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

Linearly interpolate between two icon button themes.

Implementation

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