RenderSliverSemanticsAnnotations constructor

RenderSliverSemanticsAnnotations({
  1. RenderSliver? child,
  2. required SemanticsProperties properties,
  3. bool container = false,
  4. bool explicitChildNodes = false,
  5. bool excludeSemantics = false,
  6. bool blockUserActions = false,
  7. Locale? localeForSubtree,
  8. TextDirection? textDirection,
})

Creates a render object that attaches a semantic annotation.

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

Implementation

RenderSliverSemanticsAnnotations({
  RenderSliver? child,
  required SemanticsProperties properties,
  bool container = false,
  bool explicitChildNodes = false,
  bool excludeSemantics = false,
  bool blockUserActions = false,
  Locale? localeForSubtree,
  TextDirection? textDirection,
}) : super(child) {
  initSemanticsAnnotations(
    properties: properties,
    container: container,
    explicitChildNodes: explicitChildNodes,
    excludeSemantics: excludeSemantics,
    blockUserActions: blockUserActions,
    localeForSubtree: localeForSubtree,
    textDirection: textDirection,
  );
}