suffix property

String get suffix

Gets or sets the suffix of the marker.

//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))
  ..items[0].subList = PdfOrderedList(
      items: PdfListItemCollection(['PDF', 'DocIO']),
      marker: PdfOrderedMarker(
          style: PdfNumberStyle.numeric, delimiter: ',', suffix: ')'))
  ..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

String get suffix {
  if (_suffix == null || _suffix == '') {
    return '.';
  }
  return _suffix!;
}
set suffix (String value)

Implementation

set suffix(String value) => _suffix = value;