AnnotationEditingItem enum
Copyright © 2018-2026 PSPDFKit GmbH. All rights reserved.
THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT. UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES. This notice may not be removed from this file.
A control on the annotation editing / property toolbar — the bar shown when an existing annotation is selected.
Hand a list of these to NutrientControllerInterface.setAnnotationEditingToolbarItems to reorder, add, or remove the property controls / actions for a selected annotation.
Platform parity
- Web — all items apply (mapped to the Web SDK's annotation toolbar item
types via
instance.setAnnotationToolbarItems). - Android — style items (color, opacity, …) map to the editable annotation properties; the note / delete actions map to the editing toolbar buttons.
- iOS — the style items (color, fillColor, outlineColor, opacity, thickness, blendMode, font, borderStyle, lineEnds) apply via the style inspector; note and delete are selected-annotation menu actions and are not customizable from Dart yet (they need native glue — see docs/annotation-toolbar-customization.md), so they are ignored on iOS.
Individual items that a platform/annotation type doesn't support are ignored.
Values
- color → const AnnotationEditingItem
-
Stroke / primary color.
- fillColor → const AnnotationEditingItem
-
Fill color (shapes).
- outlineColor → const AnnotationEditingItem
-
Outline color.
- opacity → const AnnotationEditingItem
-
Opacity / alpha.
- thickness → const AnnotationEditingItem
-
Stroke thickness / line width.
- blendMode → const AnnotationEditingItem
-
Blend mode (Web/iOS).
- font → const AnnotationEditingItem
-
Font (free text).
- borderStyle → const AnnotationEditingItem
-
Border / line style (e.g. solid, dashed).
- lineEnds → const AnnotationEditingItem
-
Line end caps (line/arrow).
- note → const AnnotationEditingItem
-
Open the annotation's note.
- delete → const AnnotationEditingItem
-
Delete the annotation.
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<
AnnotationEditingItem> - A constant List of the values in this enum, in order of their declaration.