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) => FCalendarEntryStyle(
  backgroundColor: FWidgetStateMap.lerpColor(backgroundColor, other.backgroundColor, t),
  borderColor: FWidgetStateMap.lerpWhere(borderColor, other.borderColor, t, Color.lerp),
  textStyle: FWidgetStateMap.lerpTextStyle(textStyle, other.textStyle, t),
  radius: t < 0.5 ? radius : other.radius,
);