Painter.fromDecodedImage constructor

Painter.fromDecodedImage(
  1. Image image
)

Implementation

factory Painter.fromDecodedImage(img.Image image) =>
    Painter(Uint8List.fromList(img.encodeJpg(image).toList()));