discontinuedPackage dart_console2 has been discontinued and replaced by dart_console.

newLine property

String get newLine

Returns the current newline string.

Implementation

String get newLine => _isRawMode ? '\r\n' : '\n';