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;
  if (value['type'] == _kImageMention) return EmbedType.mention;
  assert(false, 'Unknown embed attribute value $value.');
  return null;
}