lerp method

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

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

Implementation

@useResult
FTimeFieldStyle lerp(FTimeFieldStyle other, double t) => FTimeFieldStyle(
  textFieldStyle: textFieldStyle.lerp(other.textFieldStyle, t),
  popoverStyle: popoverStyle.lerp(other.popoverStyle, t),
  popoverConstraints: t < 0.5 ? popoverConstraints : other.popoverConstraints,
  pickerStyle: pickerStyle.lerp(other.pickerStyle, t),
  iconStyle: IconThemeData.lerp(iconStyle, other.iconStyle, t),
);