RenderSemanticsAnnotations constructor Null safety
- {RenderBox? child,
- required SemanticsProperties properties,
- bool container = false,
- bool explicitChildNodes = false,
- bool excludeSemantics = false,
- TextDirection? textDirection}
Creates a render object that attaches a semantic annotation.
The container
argument must not be null.
If the SemanticsProperties.attributedLabel is not null, the textDirection
must also not be null.
Implementation
RenderSemanticsAnnotations({
RenderBox? child,
required SemanticsProperties properties,
bool container = false,
bool explicitChildNodes = false,
bool excludeSemantics = false,
TextDirection? textDirection,
}) : assert(container != null),
_container = container,
_explicitChildNodes = explicitChildNodes,
_excludeSemantics = excludeSemantics,
_textDirection = textDirection,
_properties = properties,
super(child) {
_updateAttributedFields(_properties);
}