lerp method
Linearly interpolate between this and another FCalendarYearPickerStyle using the given factor t.
Implementation
@useResult
FCalendarYearPickerStyle lerp(FCalendarYearPickerStyle other, double t) => .new(
headerSpacing: lerpDouble(headerSpacing, other.headerSpacing, t) ?? headerSpacing,
yearStyles: FCalendarYearStyles(.lerpWhere(yearStyles, other.yearStyles, t, (a, b, t) => a!.lerp(b!, t))),
yearSize: t < 0.5 ? yearSize : other.yearSize,
yearSpacing: lerpDouble(yearSpacing, other.yearSpacing, t) ?? yearSpacing,
);