PdfDashStyle enum Null safety

Possible dash styles of the pen.

//Create a new PDF document.
PdfDocument document = PdfDocument()
  ..pages.add().graphics.drawRectangle(
      pen: PdfPen(PdfColor(255, 0, 0),
          dashStyle: PdfDashStyle.custom, lineCap: PdfLineCap.round)
        ..dashPattern = [4, 2, 1, 3],
      bounds: Rect.fromLTWH(0, 0, 200, 100));
//Save the document.
List<int> bytes = document.save();
//Close the document.
document.dispose();
Implemented types

Constants

custom → const PdfDashStyle

User defined dash style.

const PdfDashStyle(5)
dash → const PdfDashStyle

Dashed line.

const PdfDashStyle(1)
dashDot → const PdfDashStyle

Dash-dot line.

const PdfDashStyle(3)
dashDotDot → const PdfDashStyle

Dash-dot-dot line.

const PdfDashStyle(4)
dot → const PdfDashStyle

Dotted line.

const PdfDashStyle(2)
solid → const PdfDashStyle

Solid line.

const PdfDashStyle(0)
values → const List<PdfDashStyle>

A constant List of the values in this enum, in order of their declaration.

const List<PdfDashStyle>

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
index int

The integer index of this enum.

final
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. [...]
override

Operators

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