lerp method

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

Implementation

@useResult
FCalendarDayPickerStyle lerp(FCalendarDayPickerStyle other, double t) => FCalendarDayPickerStyle(
  headerTextStyle: TextStyle.lerp(headerTextStyle, other.headerTextStyle, t) ?? headerTextStyle,
  current: current.lerp(other.current, t),
  enclosing: enclosing.lerp(other.enclosing, t),
  startDayOfWeek: t < 0.5 ? startDayOfWeek : other.startDayOfWeek,
  tileSize: lerpDouble(tileSize, other.tileSize, t) ?? tileSize,
);