PdfPageAnchor enum

When PdfViewerController.goToPage is called, the page is aligned to the specified anchor.

If the viewer area is smaller than the page, only some part of the page is shown in the viewer. And the anchor determines which part of the page should be shown in the viewer when PdfViewerController.goToPage is called.

If you prefer to show the top of the page, PdfPageAnchor.top will do that.

If you prefer to show whole the page even if the page will be zoomed down to fit into the viewer, PdfPageAnchor.all will do that.

Inheritance

Constructors

PdfPageAnchor()
const

Values

top → const PdfPageAnchor
left → const PdfPageAnchor
bottom → const PdfPageAnchor
topLeft → const PdfPageAnchor
topCenter → const PdfPageAnchor
topRight → const PdfPageAnchor
centerLeft → const PdfPageAnchor
center → const PdfPageAnchor
centerRight → const PdfPageAnchor
bottomLeft → const PdfPageAnchor
bottomCenter → const PdfPageAnchor
bottomRight → const PdfPageAnchor
all → const PdfPageAnchor

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

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

Constants

values → const List<PdfPageAnchor>
A constant List of the values in this enum, in order of their declaration.