resize static method
Basic Transformations
-
height
: height (Default: 0) -
width
: width (Default: 0) -
fit
: fit (Default: cover) -
background
: background (Default: "000000") -
position
: position (Default: center) -
algorithm
: algorithm (Default: lanczos3) -
dpr
: DPR (Default: 1)
Returns TransformationData.
Implementation
static TransformationData resize(
{int? height = 0,
int? width = 0,
Fit? fit = Fit.cover,
String? background = "000000",
Position? position = Position.center,
Algorithm? algorithm = Algorithm.lanczos3,
double? dpr = 1}) {
// Call the generated class method
return Resize()
.resize(height, width, fit, background, position, algorithm, dpr);
}