reverse method
Reverses this string
Example:
print('hello'.reverse()); // "olleh"
Implementation
String reverse() {
if (isEmpty) return this;
return split('').reversed.join('');
}
Reverses this string
Example:
print('hello'.reverse()); // "olleh"
String reverse() {
if (isEmpty) return this;
return split('').reversed.join('');
}