elementInteractions property
Web specific
Configures element interaction (click) tracking using ElementInteractions. See docs
for more information. Set to ElementInteractionsDisabled() to disable tracking clicks.
Disabled by default.
Flutter web requirement. DOM-based capture (this option, formInteractions, and fileDownloads) only sees real DOM nodes. With the default CanvasKit renderer the UI is painted to a
<canvas>, so the Browser SDK can only observe elements from Flutter's accessibility semantics tree, which must be enabled globally (e.g. viaSemanticsBinding.instance.ensureSemantics()). Enabling semantics app-wide has a runtime cost and known side effects, so it is not recommended unless your app already relies on semantics. Semantic widgets render as<flt-semantics>nodes carrying ARIA roles rather than native HTML tags, so ElementInteractionsOptions defaults itscssSelectorAllowlistto a Flutter-aware set (ElementInteractionsOptions.defaultCssSelectorAllowlist).
Can be either ElementInteractionsOptions, ElementInteractionsEnabled or
ElementInteractionsDisabled.
Implementation
final ElementInteractions elementInteractions;