lerp method

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

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

Implementation

@useResult
FMultiSelectStyle lerp(FMultiSelectStyle other, double t) => .new(
  fieldStyles: FMultiSelectFieldSizeStyles(
    .lerpWhere(fieldStyles, other.fieldStyles, t, (a, b, t) => a!.lerp(b!, t)),
  ),
  searchStyle: searchStyle.lerp(other.searchStyle, t),
  contentStyle: contentStyle.lerp(other.contentStyle, t),
  emptyTextStyle: .lerp(emptyTextStyle, other.emptyTextStyle, t) ?? emptyTextStyle,
);