resizeWidth method

CdnPathBuilder resizeWidth(
  1. int width
)

Resizes width, keeping the aspect ratio.

Implementation

CdnPathBuilder resizeWidth(int width) {
  dimensionGuard(width);
  sb.write('/-/resize/');
  sb.write(width);
  sb.write('x');
  return this;
}