lerp method

  1. @override
AlignModifierSpec lerp(
  1. covariant AlignModifierSpec? other,
  2. double t
)
override

Linearly interpolate with another Spec object.

Implementation

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