toPrintable static method
Returns an escaped string.
If string is null then an empty string is returned.
The following characters are escaped
tab newline carriage return
Example:
print(toPrintable("Hello 'world' \n"));
=> Hello \'world\' \n
Implementation
static String toPrintable(String? string) => Transform.toPrintable(string);