AnnotationViewBuilder typedef

AnnotationViewBuilder = Widget Function(BuildContext context, ArAnnotation annotation)

Signature for a function that creates a widget for a given annotation.

ArView re-sorts and re-filters annotations on every sensor update, so their position in the rendered list is not stable across frames. To keep Flutter's element reconciliation correct despite that reordering, ArView already wraps the returned widget in a Positioned keyed with ValueKey(annotation.uid) — you do not need to (but may) key the widget you return here yourself.

Implementation

typedef AnnotationViewBuilder = Widget Function(
    BuildContext context, ArAnnotation annotation);