pictures property
PicturesCollection
get
pictures
Gets/Sets a pictures collections in the worksheet.
Workbook workbook = new Workbook();
Worksheet sheet = workbook.worksheets[0];
String base64Image = base64Encode(File('image.png').readAsBytesSync());
sheet.picutes.addBase64(1, 1, base64Image);
List<int> bytes = workbook.saveAsStream();
File('Picutes.xlsx').writeAsBytes(bytes);
workbook.dispose();
Implementation
PicturesCollection get pictures {
_pictures ??= PicturesCollection(this);
return _pictures!;
}