lerp method

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

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

Implementation

@useResult
FPaginationStyle lerp(FPaginationStyle other, double t) => FPaginationStyle(
  itemPadding: EdgeInsets.lerp(itemPadding, other.itemPadding, t) ?? itemPadding,
  itemConstraints: BoxConstraints.lerp(itemConstraints, other.itemConstraints, t) ?? itemConstraints,
  itemIconStyle: FWidgetStateMap.lerpIconThemeData(itemIconStyle, other.itemIconStyle, t),
  itemDecoration: FWidgetStateMap.lerpBoxDecoration(itemDecoration, other.itemDecoration, t),
  itemTextStyle: FWidgetStateMap.lerpTextStyle(itemTextStyle, other.itemTextStyle, t),
  ellipsisTextStyle: TextStyle.lerp(ellipsisTextStyle, other.ellipsisTextStyle, t) ?? ellipsisTextStyle,
  actionTappableStyle: actionTappableStyle.lerp(other.actionTappableStyle, t),
  pageTappableStyle: pageTappableStyle.lerp(other.pageTappableStyle, t),
  focusedOutlineStyle: focusedOutlineStyle.lerp(other.focusedOutlineStyle, t),
);