lerp method

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

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

Implementation

@useResult
FFormFieldStyle lerp(FFormFieldStyle other, double t) => .new(
  labelTextStyle: .lerpTextStyle(labelTextStyle, other.labelTextStyle, t),
  descriptionTextStyle: .lerpTextStyle(descriptionTextStyle, other.descriptionTextStyle, t),
  errorTextStyle: .lerp(errorTextStyle, other.errorTextStyle, t) ?? errorTextStyle,
);