Dart编程实例 - 异步 Dart编程实例 - 封装错误 Dart编程实例 - 同步 Dart编程实例 - 异步 import 'dart:io'; void main() { print("Enter your name :"); // prompt for user input String name = stdin.readLineSync(); // this is a synchronous method that reads user input print("Hello Mr. ${name}"); print("End of main"); } Dart编程实例 - 封装错误 Dart编程实例 - 同步