resize static method

TransformationData resize({
  1. int? height = 0,
  2. int? width = 0,
  3. Fit? fit = Fit.cover,
  4. String? background = "000000",
  5. Position? position = Position.center,
  6. Algorithm? algorithm = Algorithm.lanczos3,
  7. double? dpr = 1,
})

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);
}