lerp method

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

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

Implementation

@useResult
FCalendarHeaderStyle lerp(FCalendarHeaderStyle other, double t) => FCalendarHeaderStyle(
  focusedOutlineStyle: focusedOutlineStyle.lerp(other.focusedOutlineStyle, t),
  buttonStyle: buttonStyle.lerp(other.buttonStyle, t),
  headerTextStyle: TextStyle.lerp(headerTextStyle, other.headerTextStyle, t) ?? headerTextStyle,
  animationDuration: t < 0.5 ? animationDuration : other.animationDuration,
);