lerp static method
Implementation
static ZeroTextfieldStyle lerp(
ZeroTextfieldStyle? a,
ZeroTextfieldStyle? b,
double t,
) {
return ZeroTextfieldStyle(
inputDecorationType:
(t < 0.5 ? a?.inputDecorationType : b?.inputDecorationType) ??
InputDecorationType.outline,
textfieldSize: (t < 0.5 ? a?.textfieldSize : b?.textfieldSize) ??
ZeroTextfieldSize.small,
enabled: (t < 0.5 ? a?.enabled : b?.enabled) ?? false,
error: (t < 0.5 ? a?.error : b?.error) ?? false,
focusedBorderColor:
Color.lerp(a?.focusedBorderColor, b?.focusedBorderColor, t) ??
Colors.transparent,
focusedColor:
Color.lerp(a?.focusedColor, b?.focusedColor, t) ?? Colors.transparent,
fillColor: Color.lerp(a?.fillColor, b?.fillColor, t),
);
}