lerp static method

Implementation

static NoticeIcon lerp(NoticeIcon? a, NoticeIcon? b, double t) {
  if (a == null && b == null) return NoticeIcon();
  return NoticeIcon(
    iconSize: lerpDouble(a?.iconSize, b?.iconSize, t) ?? 35,
    successIcon: t < 0.5 ? a?.successIcon : b?.successIcon,
    errorIcon: t < 0.5 ? a?.errorIcon : b?.errorIcon,
    warningIcon: t < 0.5 ? a?.warningIcon : b?.warningIcon,
    infoIcon: t < 0.5 ? a?.infoIcon : b?.infoIcon,
  );
}