lerp method

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

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

Implementation

@useResult
FBreadcrumbStyle lerp(FBreadcrumbStyle other, double t) => .new(
  textStyle: .lerpTextStyle(textStyle, other.textStyle, t),
  iconStyle: .lerp(iconStyle, other.iconStyle, t),
  padding: .lerp(padding, other.padding, t) ?? padding,
  collapsedPadding: .lerp(collapsedPadding, other.collapsedPadding, t) ?? collapsedPadding,
  tappableStyle: tappableStyle.lerp(other.tappableStyle, t),
  focusedOutlineStyle: focusedOutlineStyle.lerp(other.focusedOutlineStyle, t),
);