digits property

List<int> get digits

Returns a list of digits.

Implementation

List<int> get digits => toString().split('').map(int.parse).toList();