reversed method
Returns a progression that goes over the same range in the opposite direction with the same step.
Implementation
String reversed() {
var res = '';
String? value = this;
if (value.isNotNullOrEmpty()) {
for (int i = this!.length; i >= 0; --i) {
res = value![i];
}
}
return res;
}