drawImage method

  1. @override
void drawImage(
  1. Image image,
  2. Offset offset,
  3. Paint paint
)
override

Draws the given Image into the canvas with its top-left corner at the given Offset. The image is composited into the canvas using the given Paint.

Implementation

@override
void drawImage(ui.Image image, ui.Offset offset, ui.Paint paint) {
  unitedRect = unitedRect.expandToInclude(
    offset & Size(image.width.toDouble(), image.height.toDouble()),
  );
}