key property
String
get
key
Stable key used to update or replace matching head elements.
Implementation
String get key {
final id = props['id'];
if (id != null) return '$tag:id:$id';
final property = props['property'];
if (property != null) return '$tag:property:$property';
final name = props['name'];
if (name != null) return '$tag:name:$name';
final rel = props['rel'];
final href = props['href'];
if (rel != null && href != null) return '$tag:rel:$rel:href:$href';
final src = props['src'];
if (src != null) return '$tag:src:$src';
return '$tag:${props.entries.map((entry) => '${entry.key}=${entry.value}').join(';')}:$content';
}