lerp method

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

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

Implementation

@useResult
FSidebarGroupStyle lerp(FSidebarGroupStyle other, double t) => FSidebarGroupStyle(
  padding: EdgeInsets.lerp(padding, other.padding, t) ?? padding,
  headerSpacing: lerpDouble(headerSpacing, other.headerSpacing, t) ?? headerSpacing,
  headerPadding: EdgeInsetsGeometry.lerp(headerPadding, other.headerPadding, t) ?? headerPadding,
  labelStyle: TextStyle.lerp(labelStyle, other.labelStyle, t) ?? labelStyle,
  actionStyle: FWidgetStateMap.lerpIconThemeData(actionStyle, other.actionStyle, t),
  childrenSpacing: lerpDouble(childrenSpacing, other.childrenSpacing, t) ?? childrenSpacing,
  childrenPadding: EdgeInsetsGeometry.lerp(childrenPadding, other.childrenPadding, t) ?? childrenPadding,
  tappableStyle: tappableStyle.lerp(other.tappableStyle, t),
  focusedOutlineStyle: focusedOutlineStyle.lerp(other.focusedOutlineStyle, t),
  itemStyle: itemStyle.lerp(other.itemStyle, t),
);