lerp method

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

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

Implementation

@useResult
FSelectStyle lerp(FSelectStyle other, double t) => .new(
  selectFieldStyle: selectFieldStyle.lerp(other.selectFieldStyle, t),
  iconStyle: .lerp(iconStyle, other.iconStyle, t),
  searchStyle: searchStyle.lerp(other.searchStyle, t),
  contentStyle: contentStyle.lerp(other.contentStyle, t),
  emptyTextStyle: .lerp(emptyTextStyle, other.emptyTextStyle, t) ?? emptyTextStyle,
);