SemanticsWidget class

Inheritance

Constructors

SemanticsWidget({Key? key, required Widget child, String? label, String? value, String? tooltip, String? increasedValue, String? decreasedValue, String? hint, bool? button, bool? enabled, bool? checked, bool? selected, bool? toggled, bool? image, bool? header, bool? link, bool? slider, bool? readOnly, bool? focused, bool? obscured, bool? multiline, VoidCallback? onTap, VoidCallback? onLongPress, VoidCallback? onIncrease, VoidCallback? onDecrease, bool merge = true, bool testOnly = false, Map<String, String>? properties})
const

Properties

button bool?
final
checked bool?
final
child Widget
final
decreasedValue String?
final
enabled bool?
final
focused bool?
final
hashCode int
The hash code for this object.
no setterinherited
final
hint String?
final
image bool?
final
increasedValue String?
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
label String?
final
final
merge bool
final
multiline bool?
final
obscured bool?
final
onDecrease VoidCallback?
final
onIncrease VoidCallback?
final
onLongPress VoidCallback?
final
onTap VoidCallback?
final
properties Map<String, String>?
final
readOnly bool?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selected bool?
final
slider bool?
final
testOnly bool
final
toggled bool?
final
tooltip String?
final
value String?
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<SemanticsWidget>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited