📅  最后修改于: 2022-03-11 14:48:09.101000             🧑  作者: Mango
main () {
// String -> int
var one = int.parse('1');
print(one == 1); // prints true
// String -> double
var two = double.parse('10');
print(two); //result is => 10.0
}