lerp static method
Linearly interpolates between two header 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 RRulePickerHeaderThemeData? lerp(
RRulePickerHeaderThemeData? a,
RRulePickerHeaderThemeData? b,
double t,
) {
if (identical(a, b)) {
return a;
}
if (a == null && b == null) {
return null;
}
return RRulePickerHeaderThemeData(
showHeader: t < 0.5 ? a?.showHeader : b?.showHeader,
style: TextStyle.lerp(a?.style, b?.style, t),
);
}