RawModeGuard class

Guard object returned by Terminal.enableRawMode.

Can be used to restore the original terminal mode.

Constructors

RawModeGuard({required bool wasEchoMode, required bool wasLineMode, required void restore()})
Creates a raw mode guard.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
wasEchoMode bool
The original echo mode setting.
final
wasLineMode bool
The original line mode setting.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
restore() → void
Restores the original terminal mode.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited