- stdin.readLineSync
Read from Standard Input
examples/dart-intro/read_from_keyboard.dart
import 'dart:io'; void main() { print("What's your name?"); var name = stdin.readLineSync(); print("How are you $name, today?"); }
import 'dart:io'; void main() { print("What's your name?"); var name = stdin.readLineSync(); print("How are you $name, today?"); }