reverse static method

String reverse(
  1. String str
)

字符串反转 Reverse string

Implementation

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