reverse method

String reverse()

Reverses this string.

'hello'.reverse() // 'olleh'

Implementation

String reverse() => split('').reversed.join();