lerp method

Linearly interpolate with another Spec object.

Implementation

@override
FractionallySizedBoxModifierSpec lerp(
  FractionallySizedBoxModifierSpec? other,
  double t,
) {
  return FractionallySizedBoxModifierSpec(
    widthFactor: lerpDouble(widthFactor, other?.widthFactor, t),
    heightFactor: lerpDouble(heightFactor, other?.heightFactor, t),
    alignment: AlignmentGeometry.lerp(alignment, other?.alignment, t),
  );
}