lerp method
Linearly interpolate between this and another FCalendarHeaderStyle using the given factor t.
Implementation
@useResult
FCalendarHeaderStyle lerp(FCalendarHeaderStyle other, double t) => .new(
padding: .lerp(padding, other.padding, t) ?? padding,
headerDecoration: .lerpDecoration(headerDecoration, other.headerDecoration, t),
tappablePadding: .lerp(tappablePadding, other.tappablePadding, t) ?? tappablePadding,
headerTextStyle: .lerpTextStyle(headerTextStyle, other.headerTextStyle, t),
toggleIconStyle: .lerpIconThemeData(toggleIconStyle, other.toggleIconStyle, t),
headerFocusedOutlineStyle: headerFocusedOutlineStyle.lerp(other.headerFocusedOutlineStyle, t),
buttonStyle: buttonStyle.lerp(other.buttonStyle, t),
toggleIcon: t < 0.5 ? toggleIcon : other.toggleIcon,
previousIcon: t < 0.5 ? previousIcon : other.previousIcon,
nextIcon: t < 0.5 ? nextIcon : other.nextIcon,
animationDuration: t < 0.5 ? animationDuration : other.animationDuration,
);