pad a number with leading zeros dart code example Example: dart convert int string leading zeros void main() { print(123.toString().padLeft(10, '0')); }