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) => .new(
  itemPadding: .lerp(itemPadding, other.itemPadding, t) ?? itemPadding,
  itemConstraints: .lerp(itemConstraints, other.itemConstraints, t) ?? itemConstraints,
  itemIconStyle: .lerpIconThemeData(itemIconStyle, other.itemIconStyle, t),
  itemDecoration: .lerpBoxDecoration(itemDecoration, other.itemDecoration, t),
  itemTextStyle: .lerpTextStyle(itemTextStyle, other.itemTextStyle, t),
  ellipsisTextStyle: .lerp(ellipsisTextStyle, other.ellipsisTextStyle, t) ?? ellipsisTextStyle,
  actionTappableStyle: actionTappableStyle.lerp(other.actionTappableStyle, t),
  pageTappableStyle: pageTappableStyle.lerp(other.pageTappableStyle, t),
  focusedOutlineStyle: focusedOutlineStyle.lerp(other.focusedOutlineStyle, t),
);