SemanticsProperties constructor Null safety

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

Creates a semantic annotation.

Implementation

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