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