RenderSemanticsAnnotations constructor Null safety

RenderSemanticsAnnotations(
  1. {RenderBox? child,
  2. bool container = false,
  3. bool explicitChildNodes = false,
  4. bool excludeSemantics = false,
  5. bool? enabled,
  6. bool? checked,
  7. bool? toggled,
  8. bool? selected,
  9. bool? button,
  10. bool? slider,
  11. bool? keyboardKey,
  12. bool? link,
  13. bool? header,
  14. bool? textField,
  15. bool? readOnly,
  16. bool? focusable,
  17. bool? focused,
  18. bool? inMutuallyExclusiveGroup,
  19. bool? obscured,
  20. bool? multiline,
  21. bool? scopesRoute,
  22. bool? namesRoute,
  23. bool? hidden,
  24. bool? image,
  25. bool? liveRegion,
  26. int? maxValueLength,
  27. int? currentValueLength,
  28. AttributedString? attributedLabel,
  29. AttributedString? attributedValue,
  30. AttributedString? attributedIncreasedValue,
  31. AttributedString? attributedDecreasedValue,
  32. AttributedString? attributedHint,
  33. SemanticsHintOverrides? hintOverrides,
  34. TextDirection? textDirection,
  35. SemanticsSortKey? sortKey,
  36. SemanticsTag? tagForChildren,
  37. VoidCallback? onTap,
  38. VoidCallback? onDismiss,
  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. Map<CustomSemanticsAction, VoidCallback>? customSemanticsActions}
)

Creates a render object that attaches a semantic annotation.

The container argument must not be null.

If the attributedLabel is not null, the textDirection must also not be null.

Implementation

RenderSemanticsAnnotations({
  RenderBox? child,
  bool container = false,
  bool explicitChildNodes = false,
  bool excludeSemantics = false,
  bool? enabled,
  bool? checked,
  bool? toggled,
  bool? selected,
  bool? button,
  bool? slider,
  bool? keyboardKey,
  bool? link,
  bool? header,
  bool? textField,
  bool? readOnly,
  bool? focusable,
  bool? focused,
  bool? inMutuallyExclusiveGroup,
  bool? obscured,
  bool? multiline,
  bool? scopesRoute,
  bool? namesRoute,
  bool? hidden,
  bool? image,
  bool? liveRegion,
  int? maxValueLength,
  int? currentValueLength,
  AttributedString? attributedLabel,
  AttributedString? attributedValue,
  AttributedString? attributedIncreasedValue,
  AttributedString? attributedDecreasedValue,
  AttributedString? attributedHint,
  SemanticsHintOverrides? hintOverrides,
  TextDirection? textDirection,
  SemanticsSortKey? sortKey,
  SemanticsTag? tagForChildren,
  VoidCallback? onTap,
  VoidCallback? onDismiss,
  VoidCallback? onLongPress,
  VoidCallback? onScrollLeft,
  VoidCallback? onScrollRight,
  VoidCallback? onScrollUp,
  VoidCallback? onScrollDown,
  VoidCallback? onIncrease,
  VoidCallback? onDecrease,
  VoidCallback? onCopy,
  VoidCallback? onCut,
  VoidCallback? onPaste,
  MoveCursorHandler? onMoveCursorForwardByCharacter,
  MoveCursorHandler? onMoveCursorBackwardByCharacter,
  MoveCursorHandler? onMoveCursorForwardByWord,
  MoveCursorHandler? onMoveCursorBackwardByWord,
  SetSelectionHandler? onSetSelection,
  SetTextHandler? onSetText,
  VoidCallback? onDidGainAccessibilityFocus,
  VoidCallback? onDidLoseAccessibilityFocus,
  Map<CustomSemanticsAction, VoidCallback>? customSemanticsActions,
}) : assert(container != null),
     _container = container,
     _explicitChildNodes = explicitChildNodes,
     _excludeSemantics = excludeSemantics,
     _enabled = enabled,
     _checked = checked,
     _toggled = toggled,
     _selected = selected,
     _button = button,
     _slider = slider,
     _keyboardKey = keyboardKey,
     _link = link,
     _header = header,
     _textField = textField,
     _readOnly = readOnly,
     _focusable = focusable,
     _focused = focused,
     _inMutuallyExclusiveGroup = inMutuallyExclusiveGroup,
     _obscured = obscured,
     _multiline = multiline,
     _scopesRoute = scopesRoute,
     _namesRoute = namesRoute,
     _liveRegion = liveRegion,
     _maxValueLength = maxValueLength,
     _currentValueLength = currentValueLength,
     _hidden = hidden,
     _image = image,
     _onDismiss = onDismiss,
     _attributedLabel = attributedLabel,
     _attributedValue = attributedValue,
     _attributedIncreasedValue = attributedIncreasedValue,
     _attributedDecreasedValue = attributedDecreasedValue,
     _attributedHint = attributedHint,
     _hintOverrides = hintOverrides,
     _textDirection = textDirection,
     _sortKey = sortKey,
     _tagForChildren = tagForChildren,
     _onTap = onTap,
     _onLongPress = onLongPress,
     _onScrollLeft = onScrollLeft,
     _onScrollRight = onScrollRight,
     _onScrollUp = onScrollUp,
     _onScrollDown = onScrollDown,
     _onIncrease = onIncrease,
     _onDecrease = onDecrease,
     _onCopy = onCopy,
     _onCut = onCut,
     _onPaste = onPaste,
     _onMoveCursorForwardByCharacter = onMoveCursorForwardByCharacter,
     _onMoveCursorBackwardByCharacter = onMoveCursorBackwardByCharacter,
     _onMoveCursorForwardByWord = onMoveCursorForwardByWord,
     _onMoveCursorBackwardByWord = onMoveCursorBackwardByWord,
     _onSetSelection = onSetSelection,
     _onSetText = onSetText,
     _onDidGainAccessibilityFocus = onDidGainAccessibilityFocus,
     _onDidLoseAccessibilityFocus = onDidLoseAccessibilityFocus,
     _customSemanticsActions = customSemanticsActions,
     super(child);