includeRouteSemantics property

bool includeRouteSemantics
final

Whether this route introduces a route scope in the semantics tree.

Defaults to true. When true, screen readers can treat pushes and pops of this route as navigation to a new screen and announce the change to users.

Set this to false for routes that update only part of the screen, such as tab or shell content in a nested navigator. This prevents screen readers from treating the route as a new screen.

Implementation

final bool includeRouteSemantics;