lerp static method
Implementation
static SkeletonAvatarStyle lerp(
SkeletonAvatarStyle? a, SkeletonAvatarStyle? b, double t) {
return SkeletonAvatarStyle(
width: t < 0.5 ? a?.width : b?.width,
height: t < 0.5 ? a?.height : b?.height,
padding:
EdgeInsetsGeometry.lerp(a?.padding, b?.padding, t) ?? EdgeInsets.zero,
randomHeight: t < 0.5 ? a?.randomHeight : b?.randomHeight,
randomWidth: t < 0.5 ? a?.randomWidth : b?.randomWidth,
minHeight: t < 0.5 ? a?.minHeight : b?.minHeight,
minWidth: t < 0.5 ? a?.minWidth : b?.minWidth,
maxHeight: t < 0.5 ? a?.maxHeight : b?.maxHeight,
maxWidth: t < 0.5 ? a?.maxWidth : b?.maxWidth,
shape: (t < 0.5 ? a?.shape : b?.shape) ?? BoxShape.rectangle,
borderRadius:
BorderRadiusGeometry.lerp(a?.borderRadius, b?.borderRadius, t),
);
}