Answers for "tyoe casting in dart"

1

tyoe casting in dart

void main() {
  var a = 10; // An integer.
  var b = "20"; // A string.
  var c = int.parse(b);
  print(a + c);
}
Posted by: Guest on April-22-2021

Browse Popular Code Answers by Language