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