backwardsString function

String backwardsString(
  1. String s
)

Reverse a String.

Implementation

String backwardsString(String s) {
  return s.isEmpty ? '' : String.fromCharCodes(backwardsList(s.codeUnits));
}