AnnotationMenuConfigurationData class

Configuration data for annotation contextual menu

This class defines how annotation menus should be configured when displayed to users. It supports removing actions, disabling actions, and controlling visual presentation options.

Usage Patterns:

Platform Compatibility:

Constructors

AnnotationMenuConfigurationData({required List<AnnotationMenuAction> itemsToRemove, required List<AnnotationMenuAction> itemsToDisable, required bool showStylePicker, required bool groupMarkupItems, int? maxVisibleItems})

Properties

groupMarkupItems bool
Whether to group markup annotation actions together in the menu.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
itemsToDisable List<AnnotationMenuAction>
List of default annotation menu actions to disable (show as grayed out).
getter/setter pair
itemsToRemove List<AnnotationMenuAction>
List of default annotation menu actions to remove completely from the menu.
getter/setter pair
maxVisibleItems int?
Maximum number of actions to show directly in the menu before creating overflow.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showStylePicker bool
Whether to show the platform's default style picker in the annotation menu.
getter/setter pair

Methods

encode() Object
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

Static Methods

decode(Object result) AnnotationMenuConfigurationData