restoreMode method
Puts back the modes that were active before enableRawMode.
Implementation
@override
void restoreMode() {
final bool? echoMode = _echoMode;
final bool? lineMode = _lineMode;
_echoMode = null;
_lineMode = null;
try {
if (lineMode != null) stdin.lineMode = lineMode;
if (echoMode != null) stdin.echoMode = echoMode;
} on StdinException {
// Nothing to put back.
}
}