prose property

String get prose

All prose runs concatenated. Loses the relative order of prose and blocks; use segments when that matters.

Implementation

String get prose => [
  for (final s in segments)
    if (s is ProseSegment) s.prose,
].join();