lerp method
Linearly interpolate between this and another FCalendarHeaderStyle using the given factor t
.
Implementation
@useResult
FCalendarHeaderStyle lerp(FCalendarHeaderStyle other, double t) => FCalendarHeaderStyle(
focusedOutlineStyle: focusedOutlineStyle.lerp(other.focusedOutlineStyle, t),
buttonStyle: buttonStyle.lerp(other.buttonStyle, t),
headerTextStyle: TextStyle.lerp(headerTextStyle, other.headerTextStyle, t) ?? headerTextStyle,
animationDuration: t < 0.5 ? animationDuration : other.animationDuration,
);