EndItemLayoutArgs class Null safety

Represents end layout event arguments.

//Create a new PDF document.
PdfDocument document = PdfDocument();
//Create a new list.
PdfOrderedList oList = PdfOrderedList(
    text: 'PDF\nXlsIO\nDocIO\nPPT',
    font: PdfStandardFont(PdfFontFamily.helvetica, 16,
        style: PdfFontStyle.italic),
    format: PdfStringFormat(lineSpacing: 20));
oList.beginItemLayout = (Object sender, BeginItemLayoutArgs args) {
  args.item.text += '_Beginsave';
};
//End item layout event.
oList.endItemLayout = (Object sender, EndItemLayoutArgs args) {
  args.page.graphics.drawRectangle(
      brush: PdfBrushes.red, bounds: const Rect.fromLTWH(400, 400, 100, 100));
};
oList.draw(
    page: document.pages.add(), bounds: const Rect.fromLTWH(20, 20, 0, 0));
//Save the document.
List<int> bytes = document.save();
//Dispose the document.
document.dispose();

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
item PdfListItem
Gets the item. [...]
read-only
page PdfPage
Gets the page. [...]
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited