stringToReversedIntArray static method
Implementation
static List<int> stringToReversedIntArray(String num) {
List<int> myArray = List.filled(num.length, 0);
for (int i = 0; i < num.length; i++) {
myArray[i] = int.tryParse(num.substring(i, i + 1)) ?? 0;
}
myArray = reverse(myArray);
return myArray;
}