buildString function

String buildString(
  1. void builder(
    1. StringBuffer buffer
    )
)

Implementation

String buildString(void builder(StringBuffer buffer)) {
  final buffer = StringBuffer();
  builder(buffer);
  return buffer.toString();
}