lerp static method
Implementation
static LoadingThemeData lerp(
LoadingThemeData? a,
LoadingThemeData? b,
double t,
) {
if (a == null && b == null) return LoadingThemeData();
return LoadingThemeData(
dismissible: t < 0.5 ? a?.dismissible ?? true : b?.dismissible ?? true,
barrierColor:
Color.lerp(a?.barrierColor, b?.barrierColor, t) ?? Colors.black38,
alignment:
Alignment.lerp(a?.alignment, b?.alignment, t) ?? Alignment.center,
curve: t < 0.5
? a?.curve ?? Curves.easeInOut
: b?.curve ?? Curves.easeInOut,
reverseCurve: t < 0.5
? a?.reverseCurve ?? Curves.easeInOutBack
: b?.reverseCurve ?? Curves.easeInOutBack,
style: LoadingOverlayStyle.lerp(a?.style, b?.style, t),
);
}