lerp static method
Linearly interpolate between two TileStyle objects.
Implementation
static TileStyle? lerp(TileStyle? a, TileStyle? b, double t) {
if (a == null && b == null) return null;
return TileStyle(
direction: lerpEnum(a?.direction, b?.direction, t),
margin: EdgeInsetsGeometry.lerp(a?.margin, b?.margin, t),
spacing: lerpDouble(a?.spacing, b?.spacing, t),
spacingEnforced: lerpBool(a?.spacingEnforced, b?.spacingEnforced, t),
crossAxisAlignment:
lerpEnum(a?.crossAxisAlignment, b?.crossAxisAlignment, t),
mainAxisAlignment:
lerpEnum(a?.mainAxisAlignment, b?.mainAxisAlignment, t),
mainAxisExpanded: lerpBool(a?.mainAxisExpanded, b?.mainAxisExpanded, t),
childExpanded: lerpBool(a?.childExpanded, b?.childExpanded, t),
);
}