scale method

DashedDecoration scale(
  1. double factor
)

Returns a new box decoration that is scaled by the given factor.

Implementation

DashedDecoration scale(double factor) {
  return DashedDecoration(
    color: Color.lerp(null, color, factor),
    image: image,
    // TODO(ianh): fade the image from transparent
    border: BoxBorder.lerp(null, border, factor),
    borderRadius: BorderRadiusGeometry.lerp(null, borderRadius, factor),
    boxShadow: BoxShadow.lerpList(null, boxShadow, factor),
    gradient: gradient?.scale(factor),
    shape: shape,
  );
}