RenderSemanticsAnnotations constructor

RenderSemanticsAnnotations({RenderBox child, bool container: false, bool explicitChildNodes, bool excludeSemantics: false, bool enabled, bool checked, bool toggled, bool selected, bool button, bool header, bool textField, bool focused, bool inMutuallyExclusiveGroup, bool obscured, bool scopesRoute, bool namesRoute, bool hidden, bool image, bool liveRegion, String label, String value, String increasedValue, String decreasedValue, String hint, SemanticsHintOverrides hintOverrides, TextDirection textDirection, SemanticsSortKey sortKey, 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, VoidCallback onDidGainAccessibilityFocus, VoidCallback onDidLoseAccessibilityFocus, Map<CustomSemanticsAction, VoidCallback> customSemanticsActions })

Creates a render object that attaches a semantic annotation.

The container argument must not be null.

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

Implementation

RenderSemanticsAnnotations({
  RenderBox child,
  bool container = false,
  bool explicitChildNodes,
  bool excludeSemantics = false,
  bool enabled,
  bool checked,
  bool toggled,
  bool selected,
  bool button,
  bool header,
  bool textField,
  bool focused,
  bool inMutuallyExclusiveGroup,
  bool obscured,
  bool scopesRoute,
  bool namesRoute,
  bool hidden,
  bool image,
  bool liveRegion,
  String label,
  String value,
  String increasedValue,
  String decreasedValue,
  String hint,
  SemanticsHintOverrides hintOverrides,
  TextDirection textDirection,
  SemanticsSortKey sortKey,
  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,
  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,
     _header = header,
     _textField = textField,
     _focused = focused,
     _inMutuallyExclusiveGroup = inMutuallyExclusiveGroup,
     _obscured = obscured,
     _scopesRoute = scopesRoute,
     _namesRoute = namesRoute,
     _liveRegion = liveRegion,
     _hidden = hidden,
     _image = image,
     _onDismiss = onDismiss,
     _label = label,
     _value = value,
     _increasedValue = increasedValue,
     _decreasedValue = decreasedValue,
     _hint = hint,
     _hintOverrides = hintOverrides,
     _textDirection = textDirection,
     _sortKey = sortKey,
     _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,
     _onDidGainAccessibilityFocus = onDidGainAccessibilityFocus,
     _onDidLoseAccessibilityFocus = onDidLoseAccessibilityFocus,
     _customSemanticsActions = customSemanticsActions,
     super(child);