<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, user-scalable=no"><meta name="description" content="API docs for the SemanticsEvent class from the semantics library, for the Dart programming language."><title>SemanticsEvent class - semantics library - Dart API</title><!-- required because all the links are pseudo-absolute --><base href=".."><link href="https://fonts.googleapis.com/css?family=Source+Code+Pro:500,400i,400,300|Source+Sans+Pro:400,300,700" rel="stylesheet"><link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"><link rel="stylesheet" href="static-assets/github.css"><link rel="stylesheet" href="static-assets/styles.css"><link rel="icon" href="static-assets/favicon.png"></head><body><div id="overlay-under-drawer"></div><header id="title"><button id="sidenav-left-toggle" type="button"> </button><ol class="breadcrumbs gt-separated dark hidden-xs"><li><a href="index.html">flutter</a></li><li><a href="semantics/semantics-library.html">semantics</a></li><li class="self-crumb">SemanticsEvent abstract class</li></ol><div class="self-name">SemanticsEvent</div><form class="search navbar-right" role="search"><input type="text" id="search-box" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search..."></form></header><main><div id="dartdoc-sidebar-left" class="col-xs-6 col-sm-3 col-md-2 sidebar sidebar-offcanvas-left"><header id="header-search-sidebar" class="hidden-l"><form class="search-sidebar" role="search"><input type="text" id="search-sidebar" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search..."></form></header><ol class="breadcrumbs gt-separated dark hidden-l" id="sidebar-nav"><li><a href="index.html">flutter</a></li><li><a href="semantics/semantics-library.html">semantics</a></li><li class="self-crumb">SemanticsEvent abstract class</li></ol><h5>semantics library</h5><ol><li class="section-title"><a href="semantics/semantics-library.html#classes">Classes</a></li><li><a href="dart-ui/AccessibilityFeatures-class.html">AccessibilityFeatures</a></li><li><a href="semantics/AnnounceSemanticsEvent-class.html">AnnounceSemanticsEvent</a></li><li><a href="semantics/CustomSemanticsAction-class.html">CustomSemanticsAction</a></li><li><a href="semantics/LongPressSemanticsEvent-class.html">LongPressSemanticsEvent</a></li><li><a href="semantics/OrdinalSortKey-class.html">OrdinalSortKey</a></li><li><a href="dart-ui/SemanticsAction-class.html">SemanticsAction</a></li><li><a href="semantics/SemanticsConfiguration-class.html">SemanticsConfiguration</a></li><li><a href="semantics/SemanticsData-class.html">SemanticsData</a></li><li><a href="semantics/SemanticsEvent-class.html">SemanticsEvent</a></li><li><a href="semantics/SemanticsHintOverrides-class.html">SemanticsHintOverrides</a></li><li><a href="semantics/SemanticsNode-class.html">SemanticsNode</a></li><li><a href="semantics/SemanticsOwner-class.html">SemanticsOwner</a></li><li><a href="semantics/SemanticsProperties-class.html">SemanticsProperties</a></li><li><a href="semantics/SemanticsService-class.html">SemanticsService</a></li><li><a href="semantics/SemanticsSortKey-class.html">SemanticsSortKey</a></li><li><a href="semantics/SemanticsTag-class.html">SemanticsTag</a></li><li><a href="semantics/TapSemanticEvent-class.html">TapSemanticEvent</a></li><li><a href="semantics/TooltipSemanticsEvent-class.html">TooltipSemanticsEvent</a></li><li><a href="semantics/UpdateLiveRegionEvent-class.html">UpdateLiveRegionEvent</a></li><li class="section-title"><a href="semantics/semantics-library.html#mixins">Mixins</a></li><li><a href="semantics/SemanticsBinding-mixin.html">SemanticsBinding</a></li><li class="section-title"><a href="semantics/semantics-library.html#properties">Properties</a></li><li><a href="semantics/debugSemanticsDisableAnimations.html">debugSemanticsDisableAnimations</a></li><li class="section-title"><a href="semantics/semantics-library.html#functions">Functions</a></li><li><a href="semantics/debugResetSemanticsIdCounter.html">debugResetSemanticsIdCounter</a></li><li class="section-title"><a href="semantics/semantics-library.html#enums">Enums</a></li><li><a href="semantics/DebugSemanticsDumpOrder-class.html">DebugSemanticsDumpOrder</a></li><li class="section-title"><a href="semantics/semantics-library.html#typedefs">Typedefs</a></li><li><a href="semantics/MoveCursorHandler.html">MoveCursorHandler</a></li><li><a href="semantics/SemanticsNodeVisitor.html">SemanticsNodeVisitor</a></li><li><a href="semantics/SetSelectionHandler.html">SetSelectionHandler</a></li></ol></div><div id="dartdoc-main-content" class="col-xs-12 col-sm-9 col-md-8 main-content"><div><h1><span class="kind-class">SemanticsEvent</span> class </h1></div><section class="desc markdown"><p>An event sent by the application to notify interested listeners thatsomething happened to the user interface (e.g. a view scrolled).</p><p>These events are usually interpreted by assistive technologies to give theuser additional clues about the current state of the UI.</p></section><section><dl class="dl-horizontal"><dt>Implementers</dt><dd><ul class="comma-separated clazz-relationships"><li><a href="semantics/AnnounceSemanticsEvent-class.html">AnnounceSemanticsEvent</a></li><li><a href="semantics/LongPressSemanticsEvent-class.html">LongPressSemanticsEvent</a></li><li><a href="semantics/TapSemanticEvent-class.html">TapSemanticEvent</a></li><li><a href="semantics/TooltipSemanticsEvent-class.html">TooltipSemanticsEvent</a></li><li><a href="semantics/UpdateLiveRegionEvent-class.html">UpdateLiveRegionEvent</a></li></ul></dd></dl></section><section class="summary offset-anchor" id="constructors"><h2>Constructors</h2><dl class="constructor-summary-list"><dt id="SemanticsEvent" class="callable"><span class="name"><a href="semantics/SemanticsEvent/SemanticsEvent.html">SemanticsEvent</a></span><span class="signature">(<span class="parameter" id="-param-type"><span class="type-annotation"><a href="dart-core/String-class.html">String</a></span> <span class="parameter-name">type</span></span>)</span></dt><dd>Initializes internal fields. <a href="semantics/SemanticsEvent/SemanticsEvent.html">[...]</a><div class="constructor-modifier features">const</div></dd></dl></section><section class="summary offset-anchor" id="instance-properties"><h2>Properties</h2><dl class="properties"><dt id="type" class="property"><span class="name"><a href="semantics/SemanticsEvent/type.html">type</a></span><span class="signature">→ <a href="dart-core/String-class.html">String</a></span></dt><dd>The type of this event. <a href="semantics/SemanticsEvent/type.html">[...]</a><div class="features">final</div></dd><dt id="hashCode" class="property inherited"><span class="name"><a href="dart-core/Object/hashCode.html">hashCode</a></span><span class="signature">→ <a href="dart-core/int-class.html">int</a></span></dt><dd class="inherited">The hash code for this object. <a href="dart-core/Object/hashCode.html">[...]</a><div class="features">read-only, inherited</div></dd><dt id="runtimeType" class="property inherited"><span class="name"><a href="dart-core/Object/runtimeType.html">runtimeType</a></span><span class="signature">→ <a href="dart-core/Type-class.html">Type</a></span></dt><dd class="inherited">A representation of the runtime type of the object.<div class="features">read-only, inherited</div></dd></dl></section><section class="summary offset-anchor" id="instance-methods"><h2>Methods</h2><dl class="callables"><dt id="getDataMap" class="callable"><span class="name"><a href="semantics/SemanticsEvent/getDataMap.html">getDataMap</a></span><span class="signature">(<wbr>)<span class="returntype parameter">→ <a href="dart-core/Map-class.html">Map</a><span class="signature"><<wbr><span class="type-parameter"><a href="dart-core/String-class.html">String</a></span>, <span class="type-parameter">dynamic</span>></span></span></span></dt><dd>Returns the event's data object.</dd><dt id="toMap" class="callable"><span class="name"><a href="semantics/SemanticsEvent/toMap.html">toMap</a></span><span class="signature">(<wbr>{<span class="parameter" id="toMap-param-nodeId"><span class="type-annotation"><a href="dart-core/int-class.html">int</a></span> <span class="parameter-name">nodeId</span></span> })<span class="returntype parameter">→ <a href="dart-core/Map-class.html">Map</a><span class="signature"><<wbr><span class="type-parameter"><a href="dart-core/String-class.html">String</a></span>, <span class="type-parameter">dynamic</span>></span></span></span></dt><dd>Converts this event to a Map that can be encoded with<a href="services/StandardMessageCodec-class.html">StandardMessageCodec</a>. <a href="semantics/SemanticsEvent/toMap.html">[...]</a></dd><dt id="toString" class="callable"><span class="name"><a href="semantics/SemanticsEvent/toString.html">toString</a></span><span class="signature">(<wbr>)<span class="returntype parameter">→ <a href="dart-core/String-class.html">String</a></span></span></dt><dd>Returns a string representation of this object.<div class="features">override</div></dd><dt id="noSuchMethod" class="callable inherited"><span class="name"><a href="dart-core/Object/noSuchMethod.html">noSuchMethod</a></span><span class="signature">(<wbr><span class="parameter" id="noSuchMethod-param-invocation"><span class="type-annotation"><a href="dart-core/Invocation-class.html">Invocation</a></span> <span class="parameter-name">invocation</span></span>)<span class="returntype parameter">→ dynamic</span></span></dt><dd class="inherited">Invoked when a non-existent method or property is accessed. <a href="dart-core/Object/noSuchMethod.html">[...]</a><div class="features">inherited</div></dd></dl></section><section class="summary offset-anchor inherited" id="operators"><h2>Operators</h2><dl class="callables"><dt id="operator ==" class="callable inherited"><span class="name"><a href="dart-core/Object/operator_equals.html">operator ==</a></span><span class="signature">(<wbr><span class="parameter" id="==-param-other"><span class="type-annotation">dynamic</span> <span class="parameter-name">other</span></span>)<span class="returntype parameter">→ <a href="dart-core/bool-class.html">bool</a></span></span></dt><dd class="inherited">The equality operator. <a href="dart-core/Object/operator_equals.html">[...]</a><div class="features">inherited</div></dd></dl></section></div> <!-- /.main-content --><div id="dartdoc-sidebar-right" class="col-xs-6 col-sm-6 col-md-2 sidebar sidebar-offcanvas-right"><ol><li class="section-title"><a href="semantics/SemanticsEvent-class.html#constructors">Constructors</a></li><li><a href="semantics/SemanticsEvent/SemanticsEvent.html">SemanticsEvent</a></li><li class="section-title"><a href="semantics/SemanticsEvent-class.html#instance-properties">Properties</a></li><li><a href="semantics/SemanticsEvent/type.html">type</a></li><li class="inherited"><a href="dart-core/Object/hashCode.html">hashCode</a></li><li class="inherited"><a href="dart-core/Object/runtimeType.html">runtimeType</a></li><li class="section-title"><a href="semantics/SemanticsEvent-class.html#instance-methods">Methods</a></li><li><a href="semantics/SemanticsEvent/getDataMap.html">getDataMap</a></li><li><a href="semantics/SemanticsEvent/toMap.html">toMap</a></li><li><a href="semantics/SemanticsEvent/toString.html">toString</a></li><li class="inherited"><a href="dart-core/Object/noSuchMethod.html">noSuchMethod</a></li><li class="section-title inherited"><a href="semantics/SemanticsEvent-class.html#operators">Operators</a></li><li class="inherited"><a href="dart-core/Object/operator_equals.html">operator ==</a></li></ol></div><!--/.sidebar-offcanvas--></main><footer><span class="no-break">flutter 0.0.0-unknown</span></footer><script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script><script src="static-assets/typeahead.bundle.min.js"></script><script src="static-assets/highlight.pack.js"></script><script src="static-assets/URI.js"></script><script src="static-assets/script.js"></script></body></html>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。