0

I first learned C++ in school. Now i started learning dart online. Like in C++ we use Cout to print out our result and its equivalent in Dart is Print(). what is the equivalent of Cin in Dart like how we input data from user in Dart coding?

Adnan abid
  • 21
  • 5

1 Answers1

1

Firstly, if you are using dart, stdin.readLineSync would help.

Secondly, if you are going to use Flutter, you can use a TextField to allow user input strings. You can also use other kinds of UI elements, such as FlatButtons.

ch271828n
  • 15,854
  • 5
  • 53
  • 88