static String toImageData(Uint8List bytes, {String ext = 'png'}) { String encoded = toBase64(bytes); return "data:image/png;base64,$encoded"; }