empty property
PdfColor
get
empty
Gets the empty(null) color.
//Creates a new PDF document.
PdfDocument document = PdfDocument()
..pages.add().graphics.drawString(
'Hello World!', PdfStandardFont(PdfFontFamily.helvetica, 12),
//Create PDF color.
pen: PdfPen(PdfColor.empty));
//Saves the document.
List<int> bytes = await document.save();
//Dispose the document.
document.dispose();
Implementation
static PdfColor get empty {
return PdfColor._empty();
}