lerp method
Linearly interpolate between this and another FSliderStyle using the given factor t
.
Implementation
@useResult
FSliderStyle lerp(FSliderStyle other, double t) => FSliderStyle(
activeColor: FWidgetStateMap.lerpColor(activeColor, other.activeColor, t),
inactiveColor: FWidgetStateMap.lerpColor(inactiveColor, other.inactiveColor, t),
borderRadius: BorderRadius.lerp(borderRadius, other.borderRadius, t) ?? borderRadius,
crossAxisExtent: lerpDouble(crossAxisExtent, other.crossAxisExtent, t) ?? crossAxisExtent,
thumbSize: lerpDouble(thumbSize, other.thumbSize, t) ?? thumbSize,
thumbStyle: thumbStyle.lerp(other.thumbStyle, t),
markStyle: markStyle.lerp(other.markStyle, t),
tooltipStyle: tooltipStyle.lerp(other.tooltipStyle, t),
tooltipMotion: tooltipMotion.lerp(other.tooltipMotion, t),
tooltipTipAnchor: AlignmentGeometry.lerp(tooltipTipAnchor, other.tooltipTipAnchor, t) ?? tooltipTipAnchor,
tooltipThumbAnchor: AlignmentGeometry.lerp(tooltipThumbAnchor, other.tooltipThumbAnchor, t) ?? tooltipThumbAnchor,
labelPadding: EdgeInsetsGeometry.lerp(labelPadding, other.labelPadding, t) ?? labelPadding,
descriptionPadding: EdgeInsetsGeometry.lerp(descriptionPadding, other.descriptionPadding, t) ?? descriptionPadding,
errorPadding: EdgeInsetsGeometry.lerp(errorPadding, other.errorPadding, t) ?? errorPadding,
childPadding: EdgeInsetsGeometry.lerp(childPadding, other.childPadding, t) ?? childPadding,
labelTextStyle: FWidgetStateMap.lerpTextStyle(labelTextStyle, other.labelTextStyle, t),
descriptionTextStyle: FWidgetStateMap.lerpTextStyle(descriptionTextStyle, other.descriptionTextStyle, t),
errorTextStyle: TextStyle.lerp(errorTextStyle, other.errorTextStyle, t) ?? errorTextStyle,
);