dart

Dart Program to convert a number to string

To convert a number or integer value to string format - dart method .toString() can be used.

int number = 10;
print(number.toString());

int secondNum = 50;
print(secondNum.toString());
Was this helpful?