SliverSemantics constructor

SliverSemantics({
  1. Key? key,
  2. required Widget sliver,
  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. AccessibilityFocusBlockType? accessibilityFocusBlockType,
  24. bool? inMutuallyExclusiveGroup,
  25. bool? obscured,
  26. bool? multiline,
  27. bool? scopesRoute,
  28. bool? namesRoute,
  29. bool? hidden,
  30. bool? image,
  31. bool? liveRegion,
  32. bool? expanded,
  33. bool? isRequired,
  34. int? maxValueLength,
  35. int? currentValueLength,
  36. String? identifier,
  37. Object? traversalParentIdentifier,
  38. Object? traversalChildIdentifier,
  39. String? label,
  40. AttributedString? attributedLabel,
  41. String? value,
  42. AttributedString? attributedValue,
  43. String? increasedValue,
  44. AttributedString? attributedIncreasedValue,
  45. String? decreasedValue,
  46. AttributedString? attributedDecreasedValue,
  47. String? hint,
  48. AttributedString? attributedHint,
  49. String? tooltip,
  50. String? onTapHint,
  51. String? onLongPressHint,
  52. TextDirection? textDirection,
  53. SemanticsSortKey? sortKey,
  54. SemanticsTag? tagForChildren,
  55. VoidCallback? onTap,
  56. VoidCallback? onLongPress,
  57. VoidCallback? onScrollLeft,
  58. VoidCallback? onScrollRight,
  59. VoidCallback? onScrollUp,
  60. VoidCallback? onScrollDown,
  61. VoidCallback? onIncrease,
  62. VoidCallback? onDecrease,
  63. VoidCallback? onCopy,
  64. VoidCallback? onCut,
  65. VoidCallback? onPaste,
  66. VoidCallback? onDismiss,
  67. MoveCursorHandler? onMoveCursorForwardByCharacter,
  68. MoveCursorHandler? onMoveCursorBackwardByCharacter,
  69. SetSelectionHandler? onSetSelection,
  70. SetTextHandler? onSetText,
  71. VoidCallback? onDidGainAccessibilityFocus,
  72. VoidCallback? onDidLoseAccessibilityFocus,
  73. VoidCallback? onFocus,
  74. VoidCallback? onExpand,
  75. VoidCallback? onCollapse,
  76. Map<CustomSemanticsAction, VoidCallback>? customSemanticsActions,
  77. SemanticsRole? role,
  78. Set<String>? controlsNodes,
  79. SemanticsValidationResult validationResult = SemanticsValidationResult.none,
  80. SemanticsHitTestBehavior? hitTestBehavior,
  81. SemanticsInputType? inputType,
  82. Locale? localeForSubtree,
  83. String? minValue,
  84. String? maxValue,
})

Creates a semantic annotation.

To create a const instance of SliverSemantics, use the SliverSemantics.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.

Implementation

SliverSemantics({
  super.key,
  required Widget sliver,
  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.accessibilityFocusBlockType,
  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.traversalParentIdentifier,
  super.traversalChildIdentifier,
  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.onExpand,
  super.onCollapse,
  super.customSemanticsActions,
  super.role,
  super.controlsNodes,
  super.validationResult = SemanticsValidationResult.none,
  super.hitTestBehavior,
  super.inputType,
  super.localeForSubtree,
  super.minValue,
  super.maxValue,
}) : super(child: sliver);