SemanticsProperties constructor

const SemanticsProperties(
  1. {bool? enabled,
  2. bool? checked,
  3. bool? mixed,
  4. bool? expanded,
  5. bool? selected,
  6. bool? toggled,
  7. bool? button,
  8. bool? link,
  9. bool? header,
  10. bool? textField,
  11. bool? slider,
  12. bool? keyboardKey,
  13. bool? readOnly,
  14. bool? focusable,
  15. bool? focused,
  16. bool? inMutuallyExclusiveGroup,
  17. bool? hidden,
  18. bool? obscured,
  19. bool? multiline,
  20. bool? scopesRoute,
  21. bool? namesRoute,
  22. bool? image,
  23. bool? liveRegion,
  24. int? maxValueLength,
  25. int? currentValueLength,
  26. String? identifier,
  27. String? label,
  28. AttributedString? attributedLabel,
  29. String? value,
  30. AttributedString? attributedValue,
  31. String? increasedValue,
  32. AttributedString? attributedIncreasedValue,
  33. String? decreasedValue,
  34. AttributedString? attributedDecreasedValue,
  35. String? hint,
  36. String? tooltip,
  37. AttributedString? attributedHint,
  38. SemanticsHintOverrides? hintOverrides,
  39. TextDirection? textDirection,
  40. SemanticsSortKey? sortKey,
  41. SemanticsTag? tagForChildren,
  42. VoidCallback? onTap,
  43. VoidCallback? onLongPress,
  44. VoidCallback? onScrollLeft,
  45. VoidCallback? onScrollRight,
  46. VoidCallback? onScrollUp,
  47. VoidCallback? onScrollDown,
  48. VoidCallback? onIncrease,
  49. VoidCallback? onDecrease,
  50. VoidCallback? onCopy,
  51. VoidCallback? onCut,
  52. VoidCallback? onPaste,
  53. MoveCursorHandler? onMoveCursorForwardByCharacter,
  54. MoveCursorHandler? onMoveCursorBackwardByCharacter,
  55. MoveCursorHandler? onMoveCursorForwardByWord,
  56. MoveCursorHandler? onMoveCursorBackwardByWord,
  57. SetSelectionHandler? onSetSelection,
  58. SetTextHandler? onSetText,
  59. VoidCallback? onDidGainAccessibilityFocus,
  60. VoidCallback? onDidLoseAccessibilityFocus,
  61. VoidCallback? onDismiss,
  62. Map<CustomSemanticsAction, VoidCallback>? customSemanticsActions}
)

Creates a semantic annotation.

Implementation

const SemanticsProperties({
  this.enabled,
  this.checked,
  this.mixed,
  this.expanded,
  this.selected,
  this.toggled,
  this.button,
  this.link,
  this.header,
  this.textField,
  this.slider,
  this.keyboardKey,
  this.readOnly,
  this.focusable,
  this.focused,
  this.inMutuallyExclusiveGroup,
  this.hidden,
  this.obscured,
  this.multiline,
  this.scopesRoute,
  this.namesRoute,
  this.image,
  this.liveRegion,
  this.maxValueLength,
  this.currentValueLength,
  this.identifier,
  this.label,
  this.attributedLabel,
  this.value,
  this.attributedValue,
  this.increasedValue,
  this.attributedIncreasedValue,
  this.decreasedValue,
  this.attributedDecreasedValue,
  this.hint,
  this.tooltip,
  this.attributedHint,
  this.hintOverrides,
  this.textDirection,
  this.sortKey,
  this.tagForChildren,
  this.onTap,
  this.onLongPress,
  this.onScrollLeft,
  this.onScrollRight,
  this.onScrollUp,
  this.onScrollDown,
  this.onIncrease,
  this.onDecrease,
  this.onCopy,
  this.onCut,
  this.onPaste,
  this.onMoveCursorForwardByCharacter,
  this.onMoveCursorBackwardByCharacter,
  this.onMoveCursorForwardByWord,
  this.onMoveCursorBackwardByWord,
  this.onSetSelection,
  this.onSetText,
  this.onDidGainAccessibilityFocus,
  this.onDidLoseAccessibilityFocus,
  this.onDismiss,
  this.customSemanticsActions,
}) : assert(label == null || attributedLabel == null, 'Only one of label or attributedLabel should be provided'),
     assert(value == null || attributedValue == null, 'Only one of value or attributedValue should be provided'),
     assert(increasedValue == null || attributedIncreasedValue == null, 'Only one of increasedValue or attributedIncreasedValue should be provided'),
     assert(decreasedValue == null || attributedDecreasedValue == null, 'Only one of decreasedValue or attributedDecreasedValue should be provided'),
     assert(hint == null || attributedHint == null, 'Only one of hint or attributedHint should be provided');