hasBlockEmbed property

bool hasBlockEmbed

Returns true if this line contains a block embedded object.

Implementation

bool get hasBlockEmbed {
  if (childCount == 1 && children.single is EmbedNode) {
    return !(children.single as EmbedNode).value.inline;
  }
  assert(children.every((child) =>
      child is TextNode || (child is EmbedNode && child.value.inline)));
  return false;
}