Answers for "how to print string and integer togather in dart"

2

dart convert int to string

int x = 5;
String y = x.toString();
Posted by: Guest on June-02-2021
2

string to int in dart

import 'dart:convert';

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

Code answers related to "how to print string and integer togather in dart"

Browse Popular Code Answers by Language