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) => FSelectStyle(
  selectFieldStyle: selectFieldStyle.lerp(other.selectFieldStyle, t),
  iconStyle: IconThemeData.lerp(iconStyle, other.iconStyle, t),
  popoverStyle: popoverStyle.lerp(other.popoverStyle, t),
  searchStyle: searchStyle.lerp(other.searchStyle, t),
  contentStyle: contentStyle.lerp(other.contentStyle, t),
  emptyTextStyle: TextStyle.lerp(emptyTextStyle, other.emptyTextStyle, t) ?? emptyTextStyle,
);