reverse function

String reverse(
  1. String text
)

Implementation

String reverse(String text) {
  return text.split("").reversed.join();
}