AnnotationEvents class
Events related to annotation interactions
Constructors
-
AnnotationEvents({ValueChanged<
Annotation> ? onCreated, ValueChanged<Annotation> ? onDeleted, ValueChanged<Annotation?> ? onSelected, ValueChanged<Annotation> ? onTap, ValueChanged<Annotation> ? onDoubleTap, ValueChanged<Annotation> ? onMouseEnter, ValueChanged<Annotation> ? onMouseLeave, void onContextMenu(Annotation annotation, Offset position)?}) -
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- onContextMenu → void Function(Annotation annotation, Offset position)?
-
Called on secondary tap on an annotation (right-click/long-press for context menu)
Receives both the annotation and the pointer position for menu placement
final
-
onCreated
→ ValueChanged<
Annotation> ? -
Called when an annotation is created
final
-
onDeleted
→ ValueChanged<
Annotation> ? -
Called when an annotation is deleted
final
-
onDoubleTap
→ ValueChanged<
Annotation> ? -
Called when an annotation is double-tapped
final
-
onMouseEnter
→ ValueChanged<
Annotation> ? -
Called when mouse enters an annotation's bounds
final
-
onMouseLeave
→ ValueChanged<
Annotation> ? -
Called when mouse leaves an annotation's bounds
final
-
onSelected
→ ValueChanged<
Annotation?> ? -
Called when an annotation's selection state changes
Receives the selected annotation, or null if selection was cleared
final
-
onTap
→ ValueChanged<
Annotation> ? -
Called when an annotation is tapped
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{ValueChanged< Annotation> ? onCreated, ValueChanged<Annotation> ? onDeleted, ValueChanged<Annotation?> ? onSelected, ValueChanged<Annotation> ? onTap, ValueChanged<Annotation> ? onDoubleTap, ValueChanged<Annotation> ? onMouseEnter, ValueChanged<Annotation> ? onMouseLeave, void onContextMenu(Annotation annotation, Offset position)?}) → AnnotationEvents -
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