- int.parse
Casting string to int
examples/dart-intro/casting_string_to_int.dart
void main() { var a = 23; var b = 19; print(a + b); // 42 var d = "19"; print( a + int.parse(d) ); // 42 }
void main() { var a = 23; var b = 19; print(a + b); // 42 var d = "19"; print( a + int.parse(d) ); // 42 }