describeSemanticsConfiguration method

  1. @override
void describeSemanticsConfiguration(
  1. SemanticsConfiguration config
)
override

Report the semantics of this node, for example for accessibility purposes.

RenderViewportBase adds RenderViewport.useTwoPaneSemantics to the provided SemanticsConfiguration to support children using RenderViewport.excludeFromScrolling.

This method should be overridden by subclasses that have interesting semantic information. Overriding subclasses should call super.describeSemanticsConfiguration(config) to ensure RenderViewport.useTwoPaneSemantics is still added to config.

See also:

Implementation

@override
void describeSemanticsConfiguration(SemanticsConfiguration config) {
  super.describeSemanticsConfiguration(config);

  config.addTagForChildren(RenderViewport.useTwoPaneSemantics);
}