Convert Integer to String in Dart
In this Dart tutorial we learn how to convert an integer value into a String value in Dart programming language.
How to convert int to String in Dart
To convert an int value into String we can use toString() function as below.
int number = 12;
String stringValue = number.toString();
The following Dart example program to show you how to use the toString() function.
void main() {
int intValue = 123456;
String stringValue = intValue.toString();
print('Integer value: ${intValue}');
print('String value: ${stringValue}');
}
Integer value: 123456
String value: 123456
Happy Coding 😊
Related Articles
Convert Integer to Double in Dart
Convert String to Integer in Dart