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) => FAccordionStyle(
  titleTextStyle: FWidgetStateMap.lerpTextStyle(titleTextStyle, other.titleTextStyle, t),
  childTextStyle: TextStyle.lerp(childTextStyle, other.childTextStyle, t) ?? childTextStyle,
  titlePadding: EdgeInsetsGeometry.lerp(titlePadding, other.titlePadding, t) ?? titlePadding,
  childPadding: EdgeInsetsGeometry.lerp(childPadding, other.childPadding, t) ?? childPadding,
  iconStyle: FWidgetStateMap.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),
);