numberOfDigits property
int
numberOfDigits
Counts the number of digits in this number. For example, calling this on 12345 would return 5.
Implementation
int get numberOfDigits => toString().length;
Counts the number of digits in this number. For example, calling this on 12345 would return 5.
int get numberOfDigits => toString().length;