Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

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.');
Source by dart.dev #
 
PREVIOUS NEXT
Tagged: #alternate #string #class #stringBuffer #string #buffer #string
ADD COMMENT
Topic
Name
1+9 =