lastRow property

int lastRow
getter/setter pair

Gets/Sets the image last row.

Workbook workbook = new Workbook();
Worksheet sheet = workbook.worksheets[0];
List<int> bytes = File('image.png').readAsBytesSync();
Picture picture = sheet.picutes.addStream(1, 1, bytes);
picture.lastRow = 15;
List<int> bytes = workbook.saveAsStream();
File('Picutes.xlsx').writeAsBytes(bytes);
workbook.dispose();

Implementation

int lastRow = 0;