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) {
  invocations.add(
    RecordedInvocation(
      _MethodCall(#drawImage, <dynamic>[image, offset, Paint.from(paint)]),
      stack: StackTrace.current,
    ),
  );
}