lerp method
Returns the interpolated BoxSpec at the given progress t.
The parameter t typically ranges from 0.0 to 1.0.
Implementation
@override
BoxSpec lerp(double t) {
if (begin == null && end == null) return const BoxSpec();
if (begin == null) return end!;
return begin!.lerp(end!, t);
}