lerp method
Linearly interpolate between two themes.
Implementation
@override
PullDownButtonTheme lerp(
ThemeExtension<PullDownButtonTheme>? other,
double t,
) {
if (other is! PullDownButtonTheme || identical(this, other)) return this;
return PullDownButtonTheme(
routeTheme: PullDownMenuRouteTheme.lerp(routeTheme, other.routeTheme, t),
itemTheme: PullDownMenuItemTheme.lerp(itemTheme, other.itemTheme, t),
dividerTheme:
PullDownMenuDividerTheme.lerp(dividerTheme, other.dividerTheme, t),
titleTheme: PullDownMenuTitleTheme.lerp(titleTheme, other.titleTheme, t),
applyOpacity: _lerpBool(applyOpacity, other.applyOpacity, t),
);
}