esc_pos_printer
esc_pos_printer copied to clipboard
No print if add image
I have this issue when try to start printing image
A value of type 'Image?' can't be assigned to a variable of type 'Image'.
This is my piece of code, someone can help me! Please
.
Hello @3rdfloordesign, the reason for the error described in the image is that it may be null. add the null safety treatment
final Image? image = decodeImage(bytes); or final Image image = decodeImage(bytes)!;