setAnnotationToolbarItems abstract method
Replaces the viewer's annotation creation toolbar (the tool picker) with
items — reorder, add, remove, or group the annotation tools.
Each entry is an AnnotationTool or an AnnotationToolGroup. Supported on Android and iOS; on Web the annotation tools live in the main toolbar (use setMainToolbarItems), so this is a no-op there.
Re-callable at any time. No-op on controllers that don't support it.
onControllerReady: (controller) => controller.setAnnotationToolbarItems([
AnnotationTool.inkPen,
AnnotationToolGroup(representative: AnnotationTool.highlight, items: [
AnnotationTool.highlight, AnnotationTool.underline, AnnotationTool.strikeOut,
]),
]);
Implementation
Future<void> setAnnotationToolbarItems(List<AnnotationToolbarItem> items);