cBuildString function
Builds a new string by populating a newly created StringBuffer using the provided builderAction
and then converting it to String.
Implementation
String cBuildString(void Function(StringBuffer sb) builderAction) {
final buffer = StringBuffer();
builderAction(buffer);
return buffer.toString();
}