PdfContextMenuTarget enum

What a context menu request acts on - resolved by the viewer before the gesture is handed to the host, so the host never has to re-run a hit test.

Inheritance
Available extensions

Values

text → const PdfContextMenuTarget

Page text. The word under the cursor is selected (a click inside an existing selection keeps it), and PdfContextMenuRequest.selectedText carries it. Also the outcome on a blank page area with nothing to paste - the case the stock text menu handles.

annotation → const PdfContextMenuTarget

A selectable annotation, named by PdfContextMenuRequest.annotation (and PdfContextMenuRequest.slot when the viewer resolved it through an editing session). It is part of the selection by the time the host is called.

lockedAnnotation → const PdfContextMenuTarget

A locked annotation. It cannot be selected - the stock menu offers only Unlock here - but it is still named by PdfContextMenuRequest.annotation / PdfContextMenuRequest.slot.

formWidget → const PdfContextMenuTarget

An AcroForm widget. It is the editing session's form selection by the time the host is called; the widget itself is reachable through PdfContextMenuRequest.controller, so PdfContextMenuRequest.slot and PdfContextMenuRequest.annotation stay null.

emptyPage → const PdfContextMenuTarget

Empty page area with annotation clipboard content - where the stock menu would have offered Paste.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
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<PdfContextMenuTarget>
A constant List of the values in this enum, in order of their declaration.