Size? lerpSize(Size? a, Size? b, double t) { a ??= Size.zero; b ??= Size.zero; return Size(lerpDouble(a.width, b.width, t)!, lerpDouble(a.height, b.height, t)!); }