SemanticsProperties constructor Null safety

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

Creates a semantic annotation.

Implementation

const SemanticsProperties({
  this.enabled,
  this.checked,
  this.mixed,
  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.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');