how to take input from user in dart using dartpad code example
Example: dart get String input from user
import 'dart:io';
void main()
{
print("Enter your name?");
// Reading name of the Geek
String name = stdin.readLineSync();
// Printing the name
print("Hello, $name! \nWelcome to GeeksforGeeks!!");
}