RawEventDetector class
A widget for adding native event listeners.
- Inheritance
-
- Object
- Widget
- StatefulWidget
- RawEventDetector
Constructors
-
RawEventDetector({Key? key, required Widget child, Map<
String, NativeEventCallback> ? events, Map<String, NativeEventCallback> ? eventsCapture}) -
const
Properties
- child → Widget
-
Child widget.
final
- correspondingTag → DomTagType?
-
Corresponding HTML tag to use to render this widget
no setterinherited
-
events
→ Map<
String, NativeEventCallback> ? -
Events to listen in bubble phase.
final
-
eventsCapture
→ Map<
String, NativeEventCallback> ? -
Events to listen in capture phase.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Keys help Rad identify which widgets have changed, are added, or are
removed when a widget has multiple sibling widgets.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
widgetCaptureEventListeners
→ Map<
DomEventType, EventCallback?> -
Events that this widget is listening to in capturing phase.
no setterinherited
-
widgetEventListeners
→ Map<
DomEventType, EventCallback?> -
Events that this widget is listening to in bubbling phase.
no setterinherited
Methods
-
createRenderElement(
RenderElement parent) → RenderElement -
Create element for current widget.
inherited
-
createState(
) → _RawEventDetectorState -
Creates the mutable state for this widget at a given location in the tree.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
shouldUpdateWidget(
Widget oldWidget) → bool -
Whether to update current widget.
inherited
-
shouldUpdateWidgetChildren(
Widget oldWidget, bool shouldUpdateWidget) → bool -
Whether to update current widget's children.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited