render method
Renders the image in the given Canvas.
Implementation
void render(Canvas canvas, Offset lt, Size size) {
canvas.drawImageRect(
_image,
Rect.fromLTWH(0, 0, _image.width.toDouble(), _image.height.toDouble()),
Rect.fromLTWH(lt.dx, lt.dy, size.width, size.height),
Paint(),
);
}