Answers for "how to do type casting in dart for string"

2

how to do type casting in dart for string

Casting an object to a string 
use 'as String' at the end of the expression
Posted by: Guest on September-13-2021
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 "how to do type casting in dart for string"

Code answers related to "Dart"

Browse Popular Code Answers by Language