Answers for "alternate of string class in dart, stringBuffer dart, string buffer dart, string buffer,stringbuffer,stringBuffer"

0

alternate of string class in dart, stringBuffer dart, string buffer dart, string buffer,stringbuffer,stringBuffer

var sb = StringBuffer();
sb
  ..write('Use a StringBuffer for ')
  ..writeAll(['efficient', 'string', 'creation'], ' ')
  ..write('.');

var fullString = sb.toString();

assert(fullString ==
    'Use a StringBuffer for efficient string creation.');
Posted by: Guest on April-24-2021

Code answers related to "alternate of string class in dart, stringBuffer dart, string buffer dart, string buffer,stringbuffer,stringBuffer"

Browse Popular Code Answers by Language