silver property

PdfPen get silver

Gets the Silver default pen.

//Create a new PDF document.
PdfDocument doc = PdfDocument();
//Draw rectangle.
doc.pages
    .add()
    .graphics
    .drawRectangle(pen: PdfPens.silver, bounds: Rect.fromLTWH(0, 0, 200, 100));
//Save the document.
List<int> bytes = doc.save();
//Dispose the document.
doc.dispose();

Implementation

static PdfPen get silver {
  if (_pens.containsKey(KnownColor.silver)) {
    return _pens[KnownColor.silver]!;
  } else {
    return _getPen(KnownColor.silver);
  }
}