toOneLine property

String get toOneLine

Converts the string into a single line by replacing newline characters. Example: "Line1\nLine2" => "Line1Line2"

Implementation

String get toOneLine => replaceAll('\n', '');