reverse static method

String reverse(
  1. String s
)

Reverse the given string s Example : hello => olleh

Implementation

static String reverse(String s) {
  return String.fromCharCodes(s.runes.toList().reversed);
}