lerp method
Linearly interpolate between this and another FCheckboxStyle using the given factor t
.
Implementation
@useResult
FCheckboxStyle lerp(FCheckboxStyle other, double t) => FCheckboxStyle(
tappableStyle: tappableStyle.lerp(other.tappableStyle, t),
focusedOutlineStyle: focusedOutlineStyle.lerp(other.focusedOutlineStyle, t),
size: lerpDouble(size, other.size, t) ?? size,
iconStyle: FWidgetStateMap.lerpIconThemeData(iconStyle, other.iconStyle, t),
decoration: FWidgetStateMap.lerpBoxDecoration(decoration, other.decoration, t),
motion: motion.lerp(other.motion, t),
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,
);