reversed method

String reversed()

Returns the reversed string.

Example:

print("hello".reversed()); // "olleh"

Implementation

String reversed() =>
    !isEmptyOrNull ? String.fromCharCodes(this!.codeUnits.reversed) : '';