type property
EmbedType?
type
Type of this embed.
Implementation
EmbedType? get type {
if (value?['type'] == _kHorizontalRuleEmbed) return EmbedType.horizontalRule;
if (value?['type'] == _kImageEmbed) return EmbedType.image;
assert(false, 'Unknown embed attribute value $value.');
return null;
}