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(Image image, Offset offset, Paint paint) {
  addSkeleton(
    Rect.fromLTWH(
      offset.dx,
      offset.dy,
      image.width.toDouble(),
      image.height.toDouble(),
    ),
    paint.color,
  );
}