toOneLine property

String? get toOneLine

Converts the string into a single line by replacing newline characters.

Implementation

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