lerp method

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

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

Implementation

@useResult
FTimePickerStyle lerp(FTimePickerStyle other, double t) => FTimePickerStyle(
  padding: EdgeInsetsDirectional.lerp(padding, other.padding, t) ?? padding,
  diameterRatio: lerpDouble(diameterRatio, other.diameterRatio, t) ?? diameterRatio,
  squeeze: lerpDouble(squeeze, other.squeeze, t) ?? squeeze,
  magnification: lerpDouble(magnification, other.magnification, t) ?? magnification,
  overAndUnderCenterOpacity:
      lerpDouble(overAndUnderCenterOpacity, other.overAndUnderCenterOpacity, t) ?? overAndUnderCenterOpacity,
  spacing: lerpDouble(spacing, other.spacing, t) ?? spacing,
  textStyle: TextStyle.lerp(textStyle, other.textStyle, t) ?? textStyle,
  textHeightBehavior: t < 0.5 ? textHeightBehavior : other.textHeightBehavior,
  selectionHeightAdjustment:
      lerpDouble(selectionHeightAdjustment, other.selectionHeightAdjustment, t) ?? selectionHeightAdjustment,
  selectionBorderRadius:
      BorderRadiusGeometry.lerp(selectionBorderRadius, other.selectionBorderRadius, t) ?? selectionBorderRadius,
  selectionColor: Color.lerp(selectionColor, other.selectionColor, t) ?? selectionColor,
  focusedOutlineStyle: focusedOutlineStyle.lerp(other.focusedOutlineStyle, t),
);