Semantics constructor

Semantics({
  1. Key? key,
  2. Widget? child,
  3. bool container = false,
  4. bool explicitChildNodes = false,
  5. bool excludeSemantics = false,
  6. bool blockUserActions = false,
  7. bool? enabled,
  8. bool? checked,
  9. bool? mixed,
  10. bool? selected,
  11. bool? toggled,
  12. bool? button,
  13. bool? slider,
  14. bool? keyboardKey,
  15. bool? link,
  16. Uri? linkUrl,
  17. bool? header,
  18. int? headingLevel,
  19. bool? textField,
  20. bool? readOnly,
  21. bool? focusable,
  22. bool? focused,
  23. bool? inMutuallyExclusiveGroup,
  24. bool? obscured,
  25. bool? multiline,
  26. bool? scopesRoute,
  27. bool? namesRoute,
  28. bool? hidden,
  29. bool? image,
  30. bool? liveRegion,
  31. bool? expanded,
  32. bool? isRequired,
  33. int? maxValueLength,
  34. int? currentValueLength,
  35. String? identifier,
  36. String? label,
  37. AttributedString? attributedLabel,
  38. String? value,
  39. AttributedString? attributedValue,
  40. String? increasedValue,
  41. AttributedString? attributedIncreasedValue,
  42. String? decreasedValue,
  43. AttributedString? attributedDecreasedValue,
  44. String? hint,
  45. AttributedString? attributedHint,
  46. String? tooltip,
  47. String? onTapHint,
  48. String? onLongPressHint,
  49. TextDirection? textDirection,
  50. SemanticsSortKey? sortKey,
  51. SemanticsTag? tagForChildren,
  52. VoidCallback? onTap,
  53. VoidCallback? onLongPress,
  54. VoidCallback? onScrollLeft,
  55. VoidCallback? onScrollRight,
  56. VoidCallback? onScrollUp,
  57. VoidCallback? onScrollDown,
  58. VoidCallback? onIncrease,
  59. VoidCallback? onDecrease,
  60. VoidCallback? onCopy,
  61. VoidCallback? onCut,
  62. VoidCallback? onPaste,
  63. VoidCallback? onDismiss,
  64. MoveCursorHandler? onMoveCursorForwardByCharacter,
  65. MoveCursorHandler? onMoveCursorBackwardByCharacter,
  66. SetSelectionHandler? onSetSelection,
  67. SetTextHandler? onSetText,
  68. VoidCallback? onDidGainAccessibilityFocus,
  69. VoidCallback? onDidLoseAccessibilityFocus,
  70. VoidCallback? onFocus,
  71. Map<CustomSemanticsAction, VoidCallback>? customSemanticsActions,
  72. SemanticsRole? role,
  73. Set<String>? controlsNodes,
  74. SemanticsValidationResult validationResult = SemanticsValidationResult.none,
  75. SemanticsInputType? inputType,
  76. Locale? localeForSubtree,
})

Creates a semantic annotation.

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

Used by assistive technologies, search engines, and other semantic analysis software to determine the meaning of the application.

See also:

Implementation

Semantics({
  super.key,
  super.child,
  super.container = false,
  super.explicitChildNodes = false,
  super.excludeSemantics = false,
  super.blockUserActions = false,
  super.enabled,
  super.checked,
  super.mixed,
  super.selected,
  super.toggled,
  super.button,
  super.slider,
  super.keyboardKey,
  super.link,
  super.linkUrl,
  super.header,
  super.headingLevel,
  super.textField,
  super.readOnly,
  super.focusable,
  super.focused,
  super.inMutuallyExclusiveGroup,
  super.obscured,
  super.multiline,
  super.scopesRoute,
  super.namesRoute,
  super.hidden,
  super.image,
  super.liveRegion,
  super.expanded,
  super.isRequired,
  super.maxValueLength,
  super.currentValueLength,
  super.identifier,
  super.label,
  super.attributedLabel,
  super.value,
  super.attributedValue,
  super.increasedValue,
  super.attributedIncreasedValue,
  super.decreasedValue,
  super.attributedDecreasedValue,
  super.hint,
  super.attributedHint,
  super.tooltip,
  super.onTapHint,
  super.onLongPressHint,
  super.textDirection,
  super.sortKey,
  super.tagForChildren,
  super.onTap,
  super.onLongPress,
  super.onScrollLeft,
  super.onScrollRight,
  super.onScrollUp,
  super.onScrollDown,
  super.onIncrease,
  super.onDecrease,
  super.onCopy,
  super.onCut,
  super.onPaste,
  super.onDismiss,
  super.onMoveCursorForwardByCharacter,
  super.onMoveCursorBackwardByCharacter,
  super.onSetSelection,
  super.onSetText,
  super.onDidGainAccessibilityFocus,
  super.onDidLoseAccessibilityFocus,
  super.onFocus,
  super.customSemanticsActions,
  super.role,
  super.controlsNodes,
  super.validationResult = SemanticsValidationResult.none,
  super.inputType,
  super.localeForSubtree,
});