PdfPens class Null safety

The collection of default pens.

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

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited

Static Properties

aliceBlue PdfPen
Gets the AliceBlue pen. [...]
read-only
antiqueWhite PdfPen
Gets the Antique white pen. [...]
read-only
aqua PdfPen
Gets the Aqua default pen. [...]
read-only
aquamarine PdfPen
Gets the Aquamarine default pen. [...]
read-only
azure PdfPen
Gets the Azure default pen. [...]
read-only
beige PdfPen
Gets the Beige default pen. [...]
read-only
bisque PdfPen
Gets the Bisque default pen. [...]
read-only
black PdfPen
Gets the Black default pen. [...]
read-only
blanchedAlmond PdfPen
Gets the BlanchedAlmond default pen. [...]
read-only
blue PdfPen
Gets the Blue default pen. [...]
read-only
blueViolet PdfPen
Gets the BlueViolet default pen. [...]
read-only
brown PdfPen
Gets the Brown default pen. [...]
read-only
burlyWood PdfPen
Gets the BurlyWood default pen. [...]
read-only
cadetBlue PdfPen
Gets the CadetBlue default pen. [...]
read-only
chartreuse PdfPen
Gets the Chartreuse default pen. [...]
read-only
chocolate PdfPen
Gets the Chocolate default pen. [...]
read-only
coral PdfPen
Gets the Coral default pen. [...]
read-only
cornflowerBlue PdfPen
Gets the CornflowerBlue default pen. [...]
read-only
cornsilk PdfPen
Gets the Corn silk default pen. [...]
read-only
crimson PdfPen
Gets the Crimson default pen. [...]
read-only
cyan PdfPen
Gets the Cyan default pen. [...]
read-only
darkBlue PdfPen
Gets the DarkBlue default pen. [...]
read-only
darkCyan PdfPen
Gets the DarkCyan default pen. [...]
read-only
darkGoldenrod PdfPen
Gets the DarkGoldenrod default pen. [...]
read-only
darkGray PdfPen
Gets the DarkGray default pen. [...]
read-only
darkGreen PdfPen
Gets the DarkGreen default pen. [...]
read-only
darkKhaki PdfPen
Gets the DarkKhaki default pen. [...]
read-only
darkMagenta PdfPen
Gets the DarkMagenta default pen. [...]
read-only
darkOliveGreen PdfPen
Gets the DarkOliveGreen default pen. [...]
read-only
darkOrange PdfPen
Gets the DarkOrange default pen. [...]
read-only
darkOrchid PdfPen
Gets the DarkOrchid default pen. [...]
read-only
darkRed PdfPen
Gets the DarkRed default pen. [...]
read-only
darkSalmon PdfPen
Gets the DarkSalmon default pen. [...]
read-only
darkSeaGreen PdfPen
Gets the DarkSeaGreen default pen. [...]
read-only
darkSlateBlue PdfPen
Gets the DarkSlateBlue default pen. [...]
read-only
darkSlateGray PdfPen
Gets the DarkSlateGray default pen. [...]
read-only
darkTurquoise PdfPen
Gets the DarkTurquoise default pen. [...]
read-only
darkViolet PdfPen
Gets the DarkViolet default pen. [...]
read-only
deepPink PdfPen
Gets the DeepPink default pen. [...]
read-only
deepSkyBlue PdfPen
Gets the DeepSkyBlue default pen. [...]
read-only
dimGray PdfPen
Gets the DimGray default pen. [...]
read-only
dodgerBlue PdfPen
Gets the DodgerBlue default pen. [...]
read-only
firebrick PdfPen
Gets the Firebrick default pen. [...]
read-only
floralWhite PdfPen
Gets the FloralWhite default pen. [...]
read-only
forestGreen PdfPen
Gets the ForestGreen default pen. [...]
read-only
fuchsia PdfPen
Gets the Fuchsia default pen. [...]
read-only
gainsboro PdfPen
Gets the Gainsborough default pen. [...]
read-only
ghostWhite PdfPen
Gets the GhostWhite default pen. [...]
read-only
gold PdfPen
Gets the Gold default pen. [...]
read-only
goldenrod PdfPen
Gets the Goldenrod default pen. [...]
read-only
gray PdfPen
Gets the Gray default pen. [...]
read-only
green PdfPen
Gets the Green default pen. [...]
read-only
greenYellow PdfPen
Gets the GreenYellow default pen. [...]
read-only
honeydew PdfPen
Gets the Honeydew default pen. [...]
read-only
hotPink PdfPen
Gets the HotPink default pen. [...]
read-only
indianRed PdfPen
Gets the IndianRed default pen. [...]
read-only
indigo PdfPen
Gets the Indigo default pen. [...]
read-only
ivory PdfPen
Gets the Ivory default pen. [...]
read-only
khaki PdfPen
Gets the Khaki default pen. [...]
read-only
lavender PdfPen
Gets the Lavender default pen. [...]
read-only
lavenderBlush PdfPen
Gets the LavenderBlush default pen. [...]
read-only
lawnGreen PdfPen
Gets the LawnGreen default pen. [...]
read-only
lemonChiffon PdfPen
Gets the LemonChiffon default pen. [...]
read-only
lightBlue PdfPen
Gets the LightBlue default pen. [...]
read-only
lightCoral PdfPen
Gets the LightCoral default pen. [...]
read-only
lightCyan PdfPen
Gets the LightCyan default pen. [...]
read-only
lightGoldenrodYellow PdfPen
Gets the LightGoldenrodYellow default pen. [...]
read-only
lightGray PdfPen
Gets the LightGray default pen. [...]
read-only
lightGreen PdfPen
Gets the LightGreen default pen. [...]
read-only
lightPink PdfPen
Gets the LightPink default pen. [...]
read-only
lightSalmon PdfPen
Gets the LightSalmon default pen. [...]
read-only
lightSeaGreen PdfPen
Gets the LightSeaGreen default pen. [...]
read-only
lightSkyBlue PdfPen
Gets the LightSkyBlue default pen. [...]
read-only
lightSlateGray PdfPen
Gets the LightSlateGray default pen. [...]
read-only
lightSteelBlue PdfPen
Gets the LightSteelBlue default pen. [...]
read-only
lightYellow PdfPen
Gets the LightYellow default pen. [...]
read-only
lime PdfPen
Gets the Lime default pen. [...]
read-only
limeGreen PdfPen
Gets the LimeGreen default pen. [...]
read-only
linen PdfPen
Gets the Linen default pen. [...]
read-only
magenta PdfPen
Gets the Magenta default pen. [...]
read-only
maroon PdfPen
Gets the Maroon default pen. [...]
read-only
mediumAquamarine PdfPen
Gets the MediumAquamarine default pen. [...]
read-only
mediumBlue PdfPen
Gets the MediumBlue default pen. [...]
read-only
mediumOrchid PdfPen
Gets the MediumOrchid default pen. [...]
read-only
mediumPurple PdfPen
Gets the MediumPurple default pen. [...]
read-only
mediumSeaGreen PdfPen
Gets the MediumSeaGreen default pen. [...]
read-only
mediumSlateBlue PdfPen
Gets the MediumSlateBlue default pen. [...]
read-only
mediumSpringGreen PdfPen
Gets the MediumSpringGreen default pen. [...]
read-only
mediumTurquoise PdfPen
Gets the MediumTurquoise default pen. [...]
read-only
mediumVioletRed PdfPen
Gets the MediumVioletRed default pen. [...]
read-only
midnightBlue PdfPen
Gets the MidnightBlue default pen. [...]
read-only
mintCream PdfPen
Gets the MintCream default pen. [...]
read-only
mistyRose PdfPen
Gets the MistyRose default pen. [...]
read-only
moccasin PdfPen
Gets the Moccasin default pen. [...]
read-only
Gets the NavajoWhite default pen. [...]
read-only
Gets the Navy default pen. [...]
read-only
oldLace PdfPen
Gets the OldLace default pen. [...]
read-only
olive PdfPen
Gets the Olive default pen. [...]
read-only
oliveDrab PdfPen
Gets the OliveDrab default pen. [...]
read-only
orange PdfPen
Gets the Orange default pen. [...]
read-only
orangeRed PdfPen
Gets the OrangeRed default pen. [...]
read-only
orchid PdfPen
Gets the Orchid default pen. [...]
read-only
paleGoldenrod PdfPen
Gets the PaleGoldenrod default pen. [...]
read-only
paleGreen PdfPen
Gets the PaleGreen default pen. [...]
read-only
paleTurquoise PdfPen
Gets the PaleTurquoise default pen. [...]
read-only
paleVioletRed PdfPen
Gets the PaleVioletRed default pen. [...]
read-only
papayaWhip PdfPen
Gets the PapayaWhip default pen. [...]
read-only
peachPuff PdfPen
Gets the PeachPuff default pen. [...]
read-only
peru PdfPen
Gets the Peru default pen. [...]
read-only
pink PdfPen
Gets the Pink default pen. [...]
read-only
plum PdfPen
Gets the Plum default pen. [...]
read-only
powderBlue PdfPen
Gets the PowderBlue default pen. [...]
read-only
purple PdfPen
Gets the Purple default pen. [...]
read-only
red PdfPen
Gets the Red default pen. [...]
read-only
rosyBrown PdfPen
Gets the RosyBrown default pen. [...]
read-only
royalBlue PdfPen
Gets the RoyalBlue default pen. [...]
read-only
saddleBrown PdfPen
Gets the SaddleBrown default pen. [...]
read-only
salmon PdfPen
Gets the Salmon default pen. [...]
read-only
sandyBrown PdfPen
Gets the SandyBrown default pen. [...]
read-only
seaGreen PdfPen
Gets the SeaGreen default pen. [...]
read-only
seaShell PdfPen
Gets the SeaShell default pen. [...]
read-only
sienna PdfPen
Gets the Sienna default pen. [...]
read-only
silver PdfPen
Gets the Silver default pen. [...]
read-only
skyBlue PdfPen
Gets the SkyBlue default pen. [...]
read-only
slateBlue PdfPen
Gets the SlateBlue default pen. [...]
read-only
slateGray PdfPen
Gets the SlateGray default pen. [...]
read-only
snow PdfPen
Gets the Snow default pen. [...]
read-only
springGreen PdfPen
Gets the SpringGreen default pen. [...]
read-only
steelBlue PdfPen
Gets the SteelBlue default pen. [...]
read-only
tan PdfPen
Gets the Tan default pen. [...]
read-only
teal PdfPen
Gets the Teal default pen. [...]
read-only
thistle PdfPen
Gets the Thistle default pen. [...]
read-only
tomato PdfPen
Gets the Tomato default pen. [...]
read-only
transparent PdfPen
Gets the Transparent default pen. [...]
read-only
turquoise PdfPen
Gets the Turquoise default pen. [...]
read-only
violet PdfPen
Gets the Violet default pen. [...]
read-only
wheat PdfPen
Gets the Wheat default pen. [...]
read-only
white PdfPen
Gets the White default pen. [...]
read-only
whiteSmoke PdfPen
Gets the WhiteSmoke default pen. [...]
read-only
yellow PdfPen
Gets the Yellow default pen. [...]
read-only
yellowGreen PdfPen
Gets the YellowGreen default pen. [...]
read-only