reverse static method

String reverse(
  1. String input
)

Implementation

static String reverse(String input) {
  return input.split('').reversed.join();
}