首页 > 建站教程 > 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");

}