lerp static method
Linearly interpolates between two text field themes.
The t argument is a value between 0 and 1, where 0 returns
the first theme and 1 returns the second theme.
Implementation
static RRulePickerTextFieldThemeData? lerp(
RRulePickerTextFieldThemeData? a,
RRulePickerTextFieldThemeData? b,
double t,
) {
if (identical(a, b)) {
return a;
}
if (a == null && b == null) {
return null;
}
return RRulePickerTextFieldThemeData(
style: TextStyle.lerp(a?.style, b?.style, t),
decoration: t < 0.5 ? a?.decoration : b?.decoration,
);
}