lerp method

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

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

Implementation

@useResult
FCalendarEntryStyle lerp(FCalendarEntryStyle other, double t) => .new(
  backgroundColor: .lerpColor(backgroundColor, other.backgroundColor, t),
  borderSide: t < 0.5 ? borderSide : other.borderSide,
  textStyle: .lerpTextStyle(textStyle, other.textStyle, t),
  borderRadius: .lerp(borderRadius, other.borderRadius, t) ?? borderRadius,
);