excludeHeaderSemantics property

bool excludeHeaderSemantics
final

Whether the title should be wrapped with header Semantics.

If false, the title will be used as SemanticsProperties.namesRoute for Android, Fuchsia, Linux, and Windows platform. This means the title is announced by screen reader when transition to this route.

The accessibility behavior is platform adaptive, based on the device's actual platform rather than the theme's platform setting. This ensures that assistive technologies like VoiceOver on iOS and macOS receive the correct namesRoute semantic information, even when the app's theme is configured to mimic a different platform's appearance.

Defaults to false.

This property is used to configure an AppBar.

Implementation

final bool excludeHeaderSemantics;