lerp static method
Linearly interpolate between two WxTileStyle objects.
Implementation
static WxTileStyle? lerp(WxTileStyle? a, WxTileStyle? b, double t) {
if (a == null && b == null) return null;
return WxTileStyle(
direction: lerpEnum(a?.direction, b?.direction, t),
margin: EdgeInsetsGeometry.lerp(a?.margin, b?.margin, t),
spacing: lerpDouble(a?.spacing, b?.spacing, t),
adaptiveSpacing: lerpBool(a?.adaptiveSpacing, b?.adaptiveSpacing, t),
align: lerpEnum(a?.align, b?.align, t),
justify: lerpEnum(a?.justify, b?.justify, t),
inline: lerpBool(a?.inline, b?.inline, t),
childWrap: lerpBool(a?.childWrap, b?.childWrap, t),
);
}