SeoText.headingLevel constructor
const
SeoText.headingLevel(
- String text, {
- Key? key,
- required int level,
- TextStyle? style,
- TextAlign? textAlign,
- int? maxLines,
- TextOverflow? overflow,
- TextDirection? textDirection,
Creates an SEO-friendly heading with custom level (1-6)
Implementation
const SeoText.headingLevel(
this.text, {
super.key,
required int level,
this.style,
this.textAlign,
this.maxLines,
this.overflow,
this.textDirection,
}) : htmlTag = 'h${level < 1 ? 1 : (level > 6 ? 6 : level)}',
_isHeading = true;