lerp static method
Implementation
static NoticeThemeData lerp(
NoticeThemeData? a,
NoticeThemeData? b,
double t,
) {
if (a == null && b == null) return NoticeThemeData();
return NoticeThemeData(
style: NoticeStyle.lerp(a?.style, b?.style, t),
onGoing: t < 0.5 ? a?.onGoing ?? false : b?.onGoing ?? false,
curve: t < 0.5
? a?.curve ?? Curves.bounceInOut
: b?.curve ?? Curves.bounceInOut,
reverseCurve: t < 0.5
? a?.reverseCurve ?? Curves.easeInOutBack
: b?.reverseCurve ?? Curves.easeInOutBack,
duration:
(t < 0.5 ? a?.duration : b?.duration) ??
const Duration(milliseconds: 1800),
animeDuration:
(t < 0.5 ? a?.animeDuration : b?.animeDuration) ??
const Duration(milliseconds: 240),
);
}