AnnotationToolbarItem class sealed

A single item in the viewer's annotation creation toolbar (the tool picker shown when you enter annotation mode).

Hand a list of these to NutrientControllerInterface.setAnnotationToolbarItems to reorder, add, remove, or group the annotation tools. There are two kinds, both usable directly in the list — no wrapper needed:

controller.setAnnotationToolbarItems([
  AnnotationTool.inkPen,
  AnnotationTool.square,
  AnnotationToolGroup(
    representative: AnnotationTool.highlight,
    items: [AnnotationTool.highlight, AnnotationTool.underline, AnnotationTool.strikeOut],
  ),
]);

Platform parity

Reordering/grouping the creation tool picker is supported on Android and iOS. On Web the annotation tools live in the main toolbar, so customize them with NutrientControllerInterface.setMainToolbarItems instead (this call is a no-op on Web).

Properties

hashCode int
The hash code for this object.
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