tResize static method

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

Basic Transformations

  • height : height (Default: 0)

  • width : width (Default: 0)

  • fit : TFit (Default: cover)

  • background : background (Default: "000000")

  • position : TPosition (Default: center)

  • algorithm : TAlgorithm (Default: lanczos3)

  • dpr : DPR (Default: 1)

Returns TransformationData.

Implementation

static TransformationData tResize(
    {int? height = 0,
    int? width = 0,
    TFit? fit = TFit.cover,
    String? background = "000000",
    TPosition? position = TPosition.center,
    TAlgorithm? algorithm = TAlgorithm.lanczos3,
    double? dpr = 1}) {
  // Call the generated class method
  return TResize()
      .resize(height, width, fit, background, position, algorithm, dpr);
}