lerp static method

Implementation

static InfoBarThemeData lerp(
  InfoBarThemeData? a,
  InfoBarThemeData? b,
  double t,
) {
  return InfoBarThemeData(
    closeIconSize: lerpDouble(a?.closeIconSize, b?.closeIconSize, t),
    closeIcon: t < 0.5 ? a?.closeIcon : b?.closeIcon,
    closeButtonStyle:
        ButtonStyle.lerp(a?.closeButtonStyle, b?.closeButtonStyle, t),
    icon: t < 0.5 ? a?.icon : b?.icon,
    decoration: (severity) {
      return Decoration.lerp(
        a?.decoration?.call(severity),
        b?.decoration?.call(severity),
        t,
      );
    },
    actionStyle: ButtonStyle.lerp(a?.actionStyle, b?.actionStyle, t),
    iconColor: (severity) {
      return Color.lerp(
        a?.iconColor?.call(severity),
        b?.iconColor?.call(severity),
        t,
      );
    },
    padding: EdgeInsetsGeometry.lerp(a?.padding, b?.padding, t),
  );
}