toImageData method
Returns the raw QR code image byte data.
Implementation
Future<ByteData?> toImageData(
double size, {
ui.ImageByteFormat format = ui.ImageByteFormat.png,
}) async {
final image = await toImage(size);
return image.toByteData(format: format);
}