SeoKey constructor

SeoKey(
  1. TagType tagType, {
  2. String text = "",
  3. String src = "",
  4. String alt = "",
  5. String? className,
  6. Map<String, String>? attributes,
})

Implementation

SeoKey(
  this.tagType, {
  this.text = "",
  this.src = "",
  this.alt = "",
  String? className,
  Map<String, String>? attributes,
})  : attributes = attributes ??
          (tagType == TagType.p ? const {"style": "color:black;"} : {}),
className = className ?? (tagType == TagType.div ? 'content-section' : ""),
      super("${tagType.name}/random${_random.nextInt(9999)}");