properties property

SemanticsProperties? get properties

The full semantics configuration, for anything beyond the convenience parameters. Mutually exclusive with them.

Used verbatim, so set SemanticsProperties.textDirection whenever the object carries text (the platform requires a direction on any node with a label, value, or hint); the ambient direction only fills in for the convenience parameters.

Implementation

SemanticsProperties? get properties => _properties;
set properties (SemanticsProperties? value)

Implementation

set properties(SemanticsProperties? value) {
  assert(
    value == null ||
        (_label == null &&
            _value == null &&
            _hint == null &&
            !_button &&
            _onTap == null &&
            _onLongPress == null &&
            _onIncrease == null &&
            _onDecrease == null &&
            _onDidGainAccessibilityFocus == null &&
            _onDidLoseAccessibilityFocus == null &&
            _sortOrder == null &&
            _textDirection == null),
    'Pass either the convenience parameters or a full properties object, '
    'not both.',
  );
  if (identical(value, _properties)) return;
  _properties = value;
  _bump();
}