JsonSemanticsBuilderModel class

Creates a semantic annotation.

To create a const instance of Semantics, use the Semantics.fromProperties constructor.

See also:

  • SemanticsProperties, which contains a complete documentation for each of the constructor parameters that belongs to semantics properties.
  • SemanticsSortKey for a class that determines accessibility traversal order.
Inheritance

Constructors

JsonSemanticsBuilderModel(Map<String, dynamic> args, {AttributedString? attributedDecreasedValue, AttributedString? attributedHint, AttributedString? attributedIncreasedValue, AttributedString? attributedLabel, AttributedString? attributedValue, bool blockUserActions = false, bool? button, bool? checked, bool container = false, int? currentValueLength, Map<CustomSemanticsAction, void Function()>? customSemanticsActions, String? decreasedValue, bool? enabled, bool excludeSemantics = false, bool? expanded, bool explicitChildNodes = false, bool? focusable, bool? focused, bool? header, bool? hidden, String? hint, String? identifier, bool? image, bool? inMutuallyExclusiveGroup, String? increasedValue, bool? keyboardKey, String? label, bool? link, bool? liveRegion, int? maxValueLength, bool? mixed, bool? multiline, bool? namesRoute, bool? obscured, void onCopy()?, void onCut()?, void onDecrease()?, void onDidGainAccessibilityFocus()?, void onDidLoseAccessibilityFocus()?, void onDismiss()?, void onIncrease()?, void onLongPress()?, String? onLongPressHint, void onMoveCursorBackwardByCharacter(bool)?, void onMoveCursorForwardByCharacter(bool)?, void onPaste()?, void onScrollDown()?, void onScrollLeft()?, void onScrollRight()?, void onScrollUp()?, void onSetSelection(TextSelection)?, void onSetText(String)?, void onTap()?, String? onTapHint, bool? readOnly, bool? scopesRoute, bool? selected, bool? slider, dynamic sortKey = null, SemanticsTag? tagForChildren, TextDirection? textDirection, bool? textField, bool? toggled, String? tooltip, String? value, JsonWidgetData? child})
const

Properties

args Map<String, dynamic>
finalinherited
attributedDecreasedValue AttributedString?
final
attributedHint AttributedString?
final
attributedIncreasedValue AttributedString?
final
attributedLabel AttributedString?
final
attributedValue AttributedString?
final
blockUserActions bool
Whether to block user interactions for the rendering subtree.
final
button bool?
final
checked bool?
final
child JsonWidgetData?
final
container bool
If container is true, this widget will introduce a new node in the semantics tree. Otherwise, the semantics will be merged with the semantics of any ancestors (if the ancestor allows that).
final
currentValueLength int?
final
customSemanticsActions Map<CustomSemanticsAction, void Function()>?
final
decreasedValue String?
final
enabled bool?
final
excludeSemantics bool
Whether to replace all child semantics with this node.
final
expanded bool?
final
explicitChildNodes bool
Whether descendants of this widget are allowed to add semantic information to the SemanticsNode annotated by this widget.
final
focusable bool?
final
focused bool?
final
hashCode int
The hash code for this object.
no setterinherited
final
hidden bool?
final
hint String?
final
identifier String?
final
image bool?
final
increasedValue String?
final
inMutuallyExclusiveGroup bool?
final
keyboardKey bool?
final
label String?
final
final
liveRegion bool?
final
maxValueLength int?
final
mixed bool?
final
multiline bool?
final
namesRoute bool?
final
obscured bool?
final
onCopy → (void Function()?)
final
onCut → (void Function()?)
final
onDecrease → (void Function()?)
final
onDidGainAccessibilityFocus → (void Function()?)
final
onDidLoseAccessibilityFocus → (void Function()?)
final
onDismiss → (void Function()?)
final
onIncrease → (void Function()?)
final
onLongPress → (void Function()?)
final
onLongPressHint String?
final
onMoveCursorBackwardByCharacter → (void Function(bool)?)
final
onMoveCursorForwardByCharacter → (void Function(bool)?)
final
onPaste → (void Function()?)
final
onScrollDown → (void Function()?)
final
onScrollLeft → (void Function()?)
final
onScrollRight → (void Function()?)
final
onScrollUp → (void Function()?)
final
onSetSelection → (void Function(TextSelection)?)
final
onSetText → (void Function(String)?)
final
onTap → (void Function()?)
final
onTapHint String?
final
readOnly bool?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scopesRoute bool?
final
selected bool?
final
slider bool?
final
sortKey → dynamic
final
tagForChildren SemanticsTag?
final
textDirection TextDirection?
final
textField bool?
final
toggled bool?
final
tooltip String?
final
value String?
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Abstract function that concrete classes must implement. This must encode the internal data model to a JSON compatible representation.
override
toString() String
Returns the string encoded JSON representation for this class. This will remove all null values and empty collections from the returned string.
inherited

Operators

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

Static Methods

fromDynamic(dynamic map, {Map<String, dynamic> args = const {}, JsonWidgetRegistry? registry}) JsonSemanticsBuilderModel
maybeFromDynamic(dynamic map, {Map<String, dynamic> args = const {}, JsonWidgetRegistry? registry}) JsonSemanticsBuilderModel?