lerp method

  1. @useResult
FCalendarDayStyle lerp(
  1. FCalendarDayStyle other,
  2. double t
)

Linearly interpolate between this and another FCalendarDayStyle using the given factor t.

Implementation

@useResult
FCalendarDayStyle lerp(FCalendarDayStyle other, double t) => .new(
  textStyle: .lerp(textStyle, other.textStyle, t) ?? textStyle,
  foreground: .lerp(foreground, other.foreground, t) ?? foreground,
  background: .lerp(background, other.background, t) ?? background,
);