SeoText.heading constructor

const SeoText.heading(
  1. String text, {
  2. Key? key,
  3. TextStyle? style,
  4. TextAlign? textAlign,
  5. int? maxLines,
  6. TextOverflow? overflow,
  7. TextDirection? textDirection,
})

Creates an SEO-friendly h1 heading

Implementation

const SeoText.heading(
  this.text, {
  super.key,
  this.style,
  this.textAlign,
  this.maxLines,
  this.overflow,
  this.textDirection,
}) : htmlTag = 'h1',
     _isHeading = true;