lerp method

Linearly interpolates this style toward other by t.

Implementation

FdcEditorInputStyle lerp(FdcEditorInputStyle other, double t) {
  return FdcEditorInputStyle(
    fillColor: Color.lerp(fillColor, other.fillColor, t),
    focusedFillColor: Color.lerp(focusedFillColor, other.focusedFillColor, t),
    readOnlyFillColor: Color.lerp(
      readOnlyFillColor,
      other.readOnlyFillColor,
      t,
    ),
    disabledFillColor: Color.lerp(
      disabledFillColor,
      other.disabledFillColor,
      t,
    ),
    borderColor: Color.lerp(borderColor, other.borderColor, t),
    focusedBorderColor: Color.lerp(
      focusedBorderColor,
      other.focusedBorderColor,
      t,
    ),
    errorBorderColor: Color.lerp(errorBorderColor, other.errorBorderColor, t),
    disabledBorderColor: Color.lerp(
      disabledBorderColor,
      other.disabledBorderColor,
      t,
    ),
    readOnlyBorderColor: Color.lerp(
      readOnlyBorderColor,
      other.readOnlyBorderColor,
      t,
    ),
    borderWidth: lerpDouble(borderWidth, other.borderWidth, t),
    focusedBorderWidth: lerpDouble(
      focusedBorderWidth,
      other.focusedBorderWidth,
      t,
    ),
    errorBorderWidth: lerpDouble(errorBorderWidth, other.errorBorderWidth, t),
    borderRadius: BorderRadiusGeometry.lerp(
      borderRadius,
      other.borderRadius,
      t,
    ),
    contentPadding: EdgeInsetsGeometry.lerp(
      contentPadding,
      other.contentPadding,
      t,
    ),
    textStyle: TextStyle.lerp(textStyle, other.textStyle, t),
    labelStyle: TextStyle.lerp(labelStyle, other.labelStyle, t),
    floatingLabelStyle: TextStyle.lerp(
      floatingLabelStyle,
      other.floatingLabelStyle,
      t,
    ),
    hintStyle: TextStyle.lerp(hintStyle, other.hintStyle, t),
    errorStyle: TextStyle.lerp(errorStyle, other.errorStyle, t),
    cursorColor: Color.lerp(cursorColor, other.cursorColor, t),
  );
}