numberOfDigits property

int get numberOfDigits

Counts the number of digits in this number.

Example:

print(12345.numberOfDigits); // 5

Implementation

int get numberOfDigits => toString().length;