Dart input int code example
Example: how to take integer input from user in dart
import 'dart:io';
void main() {
print("Enter a number..");
var number = stdin.readLineSync();
var intNumber= int.parse(number);
print(intNumber);
}
import 'dart:io';
void main() {
print("Enter a number..");
var number = stdin.readLineSync();
var intNumber= int.parse(number);
print(intNumber);
}