type casting in dart code example
Example: tyoe casting in dart
void main() {
var a = 10; // An integer.
var b = "20"; // A string.
var c = int.parse(b);
print(a + c);
}
void main() {
var a = 10; // An integer.
var b = "20"; // A string.
var c = int.parse(b);
print(a + c);
}