reverse property
String
get
reverse
reverse
Implementation
String get reverse {
final String text = this;
if (isEmpty) return '';
final StringBuffer sb = StringBuffer();
for (int i = text.length - 1; i >= 0; i--) {
sb.writeCharCode(text.codeUnitAt(i));
}
return sb.toString();
}