AnnotationMarker class

Numbered circular visual badge rendered on the overlay over an annotated widget.

Features scale-up entrance and scale-down exit animations with staggered delays (matching upstream Agentation and Screenshot 1), and hover transitions.

Inheritance

Constructors

AnnotationMarker({Key? key, required int index, required Annotation annotation, required VoidCallback onTap, bool isSelected = false, bool isHovered = false, ValueChanged<bool>? onHoverChanged, Color? accentColor, WidgetBounds? boundsOverride, bool isExiting = false, int layerIndex = 0, int layerSize = 1, bool animateEntrance = true})
const

Properties

accentColor → Color?
Optional accent theme color (defaults to vibrant blue #0088FF).
final
animateEntrance → bool
Whether to animate entrance when mounted.
final
annotation → Annotation
The associated annotation.
final
boundsOverride → WidgetBounds?
Optional live bounding box override when dynamic scrolling reprojection is active.
final
hashCode → int
The hash code for this object.
no setterinherited
index → int
The 1-based sequential display number (1, 2, 3...).
final
isExiting → bool
Whether this marker is currently animating its exit before unmounting.
final
isHovered → bool
Whether this marker is actively hovered.
final
isSelected → bool
Whether this marker is currently selected.
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
layerIndex → int
0-based index of this marker in the visible layer, for stagger animation delay.
final
layerSize → int
Total count of markers in this layer, for calculating reverse stagger delays.
final
onHoverChanged → ValueChanged<bool>?
Optional callback invoked when hover status changes.
final
onTap → VoidCallback
Callback when the marker is tapped.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

createElement() → StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → State<AnnotationMarker>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() → List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) → String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String
Returns a one-line detailed description of the object.
inherited
toStringShort() → String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited