lerp static method
Implementation
static NoticeStyle lerp(NoticeStyle? a, NoticeStyle? b, double t) {
if (a == null && b == null) return NoticeStyle();
return NoticeStyle(
constraints: BoxConstraints.lerp(a?.constraints, b?.constraints, t) ??
const BoxConstraints(),
backgroundColor: Color.lerp(a?.backgroundColor, b?.backgroundColor, t),
borderRadius: BorderRadius.lerp(a?.borderRadius, b?.borderRadius, t) ??
BorderRadius.zero,
shadowColor:
Color.lerp(a?.shadowColor, b?.shadowColor, t) ?? Colors.black,
elevation: lerpDouble(a?.elevation, b?.elevation, t),
titleStyle: TextStyle.lerp(a?.titleStyle, b?.titleStyle, t),
messageStyle: TextStyle.lerp(a?.messageStyle, b?.messageStyle, t),
noticeIcon: NoticeIcon.lerp(a?.noticeIcon, b?.noticeIcon, t),
space: lerpDouble(a?.space, b?.space, t) ?? 14,
padding: EdgeInsetsGeometry.lerp(a?.padding, b?.padding, t) ??
const EdgeInsets.all(14),
margin: EdgeInsetsGeometry.lerp(a?.margin, b?.margin, t) ??
const EdgeInsets.all(14),
);
}