append method
- String? suffix
Appends a suffix
to the String
.
Example
String foo = 'hello';
String newFoo = foo1.append(' world'); // returns 'hello world'
Implementation
String append(String? suffix) {
if (isBlank) {
return suffix ?? "";
}
return this + (suffix ?? "");
}