lerp static method
- DropdownMenuThemeData? a,
- DropdownMenuThemeData? b,
- 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),
);
}