reverse method
Reverses the string.
Example:
'hello'.reverse(); // 'olleh'
Implementation
String reverse() => split('').reversed.join();
Reverses the string.
Example:
'hello'.reverse(); // 'olleh'
String reverse() => split('').reversed.join();