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. AttributedString? attributedHint,
  34. SemanticsHintOverrides? hintOverrides,
  35. TextDirection? textDirection,
  36. SemanticsSortKey? sortKey,
  37. SemanticsTag? tagForChildren,
  38. VoidCallback? onTap,
  39. VoidCallback? onLongPress,
  40. VoidCallback? onScrollLeft,
  41. VoidCallback? onScrollRight,
  42. VoidCallback? onScrollUp,
  43. VoidCallback? onScrollDown,
  44. VoidCallback? onIncrease,
  45. VoidCallback? onDecrease,
  46. VoidCallback? onCopy,
  47. VoidCallback? onCut,
  48. VoidCallback? onPaste,
  49. MoveCursorHandler? onMoveCursorForwardByCharacter,
  50. MoveCursorHandler? onMoveCursorBackwardByCharacter,
  51. MoveCursorHandler? onMoveCursorForwardByWord,
  52. MoveCursorHandler? onMoveCursorBackwardByWord,
  53. SetSelectionHandler? onSetSelection,
  54. SetTextHandler? onSetText,
  55. VoidCallback? onDidGainAccessibilityFocus,
  56. VoidCallback? onDidLoseAccessibilityFocus,
  57. VoidCallback? onDismiss,
  58. 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.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');