Skip to content

RillCompilerStringOps

extensionRillCompilerStringOpsonRillCompile<String>

String-specific compile terminals.

Properties

string extension no setter

IO<String>getstring

Concatenates all emitted strings into a single String.

Available on RillCompile<O>, provided by the RillCompilerStringOps extension

Implementation
dart
IO<String> get string => foldChunks(
  StringBuffer(),
  (buf, chunk) => buf..writeAll(chunk.toList()),
).map((buf) => buf.toString());