lerp static method

Linearly interpolate between two FolderViewSpacingThemes

Implementation

static FolderViewSpacingTheme lerp(
  FolderViewSpacingTheme? a,
  FolderViewSpacingTheme? b,
  double t,
) {
  if (a == null && b == null) return const FolderViewSpacingTheme();
  if (a == null) return b!;
  if (b == null) return a;

  return FolderViewSpacingTheme(
    contentPadding: EdgeInsets.lerp(a.contentPadding, b.contentPadding, t) ??
        EdgeInsets.zero,
  );
}