Answers for "alternate of string class in dart"

0

alternate of string class in dart

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

Browse Popular Code Answers by Language