reversed method

String reversed()

Returns a progression that goes over the same range in the opposite direction with the same step.

Implementation

String reversed() {
  var res = "";
  for (int i = this!.length - 1; i >= 0; --i) {
    res += this![i];
  }
  return res;
}