scale method
Returns a new box decoration that is scaled by the given factor.
Implementation
AuroraDecoration scale(double factor) {
return AuroraDecoration(
color: Color.lerp(null, color, factor),
border: BoxBorder.lerp(null, border, factor),
borderRadius: BorderRadiusGeometry.lerp(null, borderRadius, factor),
boxShadow: BoxShadow.lerpList(null, boxShadow, factor),
gradients: gradients?.map((e) => e.scale(factor)).toList(),
shape: shape,
);
}