readLine method
Implementation
String? readLine([Endian endian = Endian.big]) {
var byte = readUnsignedByte(false);
if (byte == -1) return null;
StringBuffer result = StringBuffer();
while (byte != -1 && byte != 0x0A) {
if (byte != 0x0D) {
result.writeCharCode(byte);
}
byte = readUnsignedByte(false);
}
return result.toString();
}