lerp method
Linearly interpolate between this and another FCalendarStyle using the given factor t.
Implementation
@useResult
FCalendarStyle lerp(FCalendarStyle other, double t) => FCalendarStyle(
headerStyle: headerStyle.lerp(other.headerStyle, t),
dayPickerStyle: dayPickerStyle.lerp(other.dayPickerStyle, t),
yearMonthPickerStyle: yearMonthPickerStyle.lerp(other.yearMonthPickerStyle, t),
decoration: BoxDecoration.lerp(decoration, other.decoration, t) ?? decoration,
padding: EdgeInsetsGeometry.lerp(padding, other.padding, t) ?? padding,
pageAnimationDuration: t < 0.5 ? pageAnimationDuration : other.pageAnimationDuration,
);