discontinuedPackage dart_console2 has been discontinued and replaced by dart_console.

Key.printable constructor

Key.printable(
  1. String char
)

Implementation

Key.printable(this.char) : assert(char.length == 1) {
  controlChar = ControlCharacter.none;
}