Answers for "flutter cast types"

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

Code answers related to "Dart"

Browse Popular Code Answers by Language