ResizeTransformation constructor
ResizeTransformation(
- Dimensions size
Implementation
ResizeTransformation(this.size)
: assert(
size.width > -1
? size.width <= 5000
: true && size.height > -1
? size.height <= 5000
: true,
'Max transform dimension is 5000x5000 in jpeg format',
),
assert(
size.units != MeasureUnits.Percent,
'Cannot use `MeasureUnits.Percent` with this transformation',
);