lerp static method

Implementation

static ThemeData lerp(
  ThemeData a,
  ThemeData b,
  double t,
) {
  return ThemeData(
    colorScheme: ColorScheme.lerp(a.colorScheme, b.colorScheme, t),
    radius: lerpDouble(a.radius, b.radius, t)!,
    typography: Typography.lerp(a.typography, b.typography, t),
    platform: t < 0.5 ? a.platform : b.platform,
    scaling: lerpDouble(a.scaling, b.scaling, t)!,
    iconTheme: IconThemeProperties.lerp(a.iconTheme, b.iconTheme, t),
    surfaceOpacity: lerpDouble(a.surfaceOpacity, b.surfaceOpacity, t),
    surfaceBlur: lerpDouble(a.surfaceBlur, b.surfaceBlur, t),
  );
}