updateRect abstract method

Future<bool> updateRect({
  1. required String documentId,
  2. int destinationX = 0,
  3. int destinationY = 0,
  4. int? width,
  5. int? height,
  6. int sourceX = 0,
  7. int sourceY = 0,
  8. int? textureWidth,
  9. int? textureHeight,
  10. double? fullWidth,
  11. double? fullHeight,
  12. String? backgroundColor,
  13. bool allowAntiAliasing = true,
})

Update texture's sub-rectangle (destinationX,destinationY,width,height) with the sub-rectangle (sourceX,sourceY,width,height) of the PDF page scaled to fullWidth x fullHeight size. The method can also resize the texture if you specify textureWidth and textureHeight. Returns true if succeeded.

Implementation

Future<bool> updateRect({
  required String documentId,
  int destinationX = 0,
  int destinationY = 0,
  int? width,
  int? height,
  int sourceX = 0,
  int sourceY = 0,
  int? textureWidth,
  int? textureHeight,
  double? fullWidth,
  double? fullHeight,
  String? backgroundColor,
  bool allowAntiAliasing = true,
});