cadetBlue property
PdfPen
get
cadetBlue
Gets the CadetBlue default pen.
//Create a new PDF document.
PdfDocument doc = PdfDocument();
//Draw rectangle.
doc.pages
.add()
.graphics
.drawRectangle(pen: PdfPens.cadetBlue,
bounds: Rect.fromLTWH(0, 0, 200, 100));
//Save the document.
List<int> bytes = doc.save();
//Dispose the document.
doc.dispose();
Implementation
static PdfPen get cadetBlue {
if (_pens.containsKey(KnownColor.cadetBlue)) {
return _pens[KnownColor.cadetBlue]!;
} else {
return _getPen(KnownColor.cadetBlue);
}
}