lerp method

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

Implementation

@useResult
FAutocompleteContentStyle lerp(FAutocompleteContentStyle other, double t) => .new(
  emptyTextStyle: .lerp(emptyTextStyle, other.emptyTextStyle, t) ?? emptyTextStyle,
  padding: .lerp(padding, other.padding, t) ?? padding,
  progressStyle: progressStyle.lerp(other.progressStyle, t),
  sectionStyle: sectionStyle.lerp(other.sectionStyle, t),
  decoration: .lerp(decoration, other.decoration, t) ?? decoration,
  barrierFilter: t < 0.5 ? barrierFilter : other.barrierFilter,
  backgroundFilter: t < 0.5 ? backgroundFilter : other.backgroundFilter,
  viewInsets: .lerp(viewInsets, other.viewInsets, t) ?? viewInsets,
);