lerp method
Linearly interpolate between this and another FCalendarMonthPickerStyle using the given factor t.
Implementation
@useResult
FCalendarMonthPickerStyle lerp(FCalendarMonthPickerStyle other, double t) => .new(
headerSpacing: lerpDouble(headerSpacing, other.headerSpacing, t) ?? headerSpacing,
monthStyles: FCalendarMonthStyles(.lerpWhere(monthStyles, other.monthStyles, t, (a, b, t) => a!.lerp(b!, t))),
monthSize: t < 0.5 ? monthSize : other.monthSize,
monthSpacing: lerpDouble(monthSpacing, other.monthSpacing, t) ?? monthSpacing,
);