lerp method

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

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

Implementation

@useResult
FCheckboxStyle lerp(FCheckboxStyle other, double t) => .new(
  tappableStyle: tappableStyle.lerp(other.tappableStyle, t),
  focusedOutlineStyle: focusedOutlineStyle.lerp(other.focusedOutlineStyle, t),
  size: lerpDouble(size, other.size, t) ?? size,
  iconStyle: .lerpIconThemeData(iconStyle, other.iconStyle, t),
  decoration: .lerpDecoration(decoration, other.decoration, t),
  motion: motion.lerp(other.motion, t),
  leadingLabelStyle: leadingLabelStyle.lerp(other.leadingLabelStyle, t),
  trailingLabelStyle: trailingLabelStyle.lerp(other.trailingLabelStyle, t),
);