toPrintable method

String toPrintable()

Returns an escaped string. The following characters are escaped

tab
newline
carriage return

Example:

    print("Hello 'world' \n".toPrintable());
    => 'Hello \'world\' \n'

Implementation

String toPrintable() => Transform.toPrintable(this);