lerp static method
Linearly interpolate between two FolderViewLineThemes
Implementation
static FolderViewLineTheme lerp(
FolderViewLineTheme? a,
FolderViewLineTheme? b,
double t,
) {
if (a == null && b == null) {
return const FolderViewLineTheme(lineColor: Color(0xFF000000));
}
if (a == null) return b!;
if (b == null) return a;
return FolderViewLineTheme(
lineColor: Color.lerp(a.lineColor, b.lineColor, t)!,
lineWidth: lerpDouble(a.lineWidth, b.lineWidth, t),
lineStyle: t < 0.5 ? a.lineStyle : b.lineStyle,
);
}