lerp method
Linearly interpolate between this and another FScaffoldStyle using the given factor t.
Implementation
@useResult
FScaffoldStyle lerp(FScaffoldStyle other, double t) => .new(
systemOverlayStyle: t < 0.5 ? systemOverlayStyle : other.systemOverlayStyle,
backgroundColor: .lerp(backgroundColor, other.backgroundColor, t) ?? backgroundColor,
sidebarBackgroundColor: .lerp(sidebarBackgroundColor, other.sidebarBackgroundColor, t) ?? sidebarBackgroundColor,
childPadding: .lerp(childPadding, other.childPadding, t) ?? childPadding,
headerDecoration: .lerp(headerDecoration, other.headerDecoration, t) ?? headerDecoration,
footerDecoration: .lerp(footerDecoration, other.footerDecoration, t) ?? footerDecoration,
);