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) => FFormFieldStyle(
  labelTextStyle: FWidgetStateMap.lerpTextStyle(labelTextStyle, other.labelTextStyle, t),
  descriptionTextStyle: FWidgetStateMap.lerpTextStyle(descriptionTextStyle, other.descriptionTextStyle, t),
  errorTextStyle: TextStyle.lerp(errorTextStyle, other.errorTextStyle, t) ?? errorTextStyle,
);