PdfOrderedMarker constructor
PdfOrderedMarker({
- PdfNumberStyle style = PdfNumberStyle.none,
- PdfFont? font,
- String suffix = '',
- String delimiter = '',
Initializes a new instance of the PdfOrderedMarker class.
//Create a new PDF document.
PdfDocument document = PdfDocument();
//Create a new ordered list.
PdfOrderedList(
items: PdfListItemCollection(['Essential tools', 'Essential grid']),
font: PdfStandardFont(PdfFontFamily.helvetica, 16,
style: PdfFontStyle.italic),
marker: //Create a new ordered marker.
PdfOrderedMarker(style: PdfNumberStyle.numeric))
..draw(
page: document.pages.add(), bounds: const Rect.fromLTWH(20, 20, 0, 0));
//Save the document.
List<int> bytes = await document.save();
//Dispose the document.
document.dispose();
Implementation
PdfOrderedMarker(
{this.style = PdfNumberStyle.none,
PdfFont? font,
String suffix = '',
String delimiter = ''}) {
_helper = PdfOrderedMarkerHelper(this);
_delimiter = delimiter;
_suffix = suffix;
this.font = font;
}