lerp static method

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

Linearly interpolates between two dropdown menu themes.

Implementation

static DropdownMenuThemeData lerp(DropdownMenuThemeData? a, DropdownMenuThemeData? b, double t) {
  if (identical(a, b) && a != null) {
    return a;
  }
  return DropdownMenuThemeData(
    textStyle: TextStyle.lerp(a?.textStyle, b?.textStyle, t),
    inputDecorationTheme: t < 0.5 ? a?.inputDecorationTheme : b?.inputDecorationTheme,
    menuStyle: MenuStyle.lerp(a?.menuStyle, b?.menuStyle, t),
  );
}