lerp method

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

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

Implementation

@useResult
FAccordionStyle lerp(FAccordionStyle other, double t) => .new(
  titleTextStyle: .lerpTextStyle(titleTextStyle, other.titleTextStyle, t),
  childTextStyle: .lerp(childTextStyle, other.childTextStyle, t) ?? childTextStyle,
  titlePadding: .lerp(titlePadding, other.titlePadding, t) ?? titlePadding,
  childPadding: .lerp(childPadding, other.childPadding, t) ?? childPadding,
  iconStyle: .lerpIconThemeData(iconStyle, other.iconStyle, t),
  focusedOutlineStyle: focusedOutlineStyle.lerp(other.focusedOutlineStyle, t),
  dividerStyle: dividerStyle.lerp(other.dividerStyle, t),
  tappableStyle: tappableStyle.lerp(other.tappableStyle, t),
  motion: motion.lerp(other.motion, t),
);