headingLevel property

int? headingLevel
final

The heading level in the document structure.

Screen readers will use this value to determine which part of the page structure this heading represents. A level 1 heading usually indicates the main heading of a page, a level 2 heading the first subsection, a level 3 is a subsection of that, and so on.

On web, this sets the aria-level attribute (e.g., aria-level="1"). On Android, this sets the isHeading property for accessibility.

Implementation

final int? headingLevel;