mediumOrchid property
PdfBrush
get
mediumOrchid
Gets the MediumOrchid default brush.
//Create a new PDF document.
PdfDocument doc = PdfDocument();
//Draw rectangle.
doc.pages.add().graphics.drawRectangle(
brush: PdfBrushes.mediumOrchid,
bounds: Rect.fromLTWH(0, 0, 200, 100));
//Save the document.
List<int> bytes = doc.save();
//Dispose the document.
doc.dispose();
Implementation
static PdfBrush get mediumOrchid {
if (_brushes.containsKey(KnownColor.mediumOrchid)) {
return _brushes[KnownColor.mediumOrchid]!;
} else {
return _getBrush(KnownColor.mediumOrchid);
}
}