Dart : Printing integer along with string
Just add toString() to your int. Similar to JS.
void main() {
int num = 5;
print('The number is ' + num.toString()); // The number is 5
}
In order to print the value of the int along with the String you need to use string interpolation:
void main() {
int num = 5;
print("The number is $num");
}