removeTrailingZeros method
Implementation
void removeTrailingZeros(List<int> list) {
bool zero = list[list.length - 1] == 0 ||
list[list.length - 2] == 0 ||
list[list.length - 3] == 0;
while (zero) {
list.removeLast();
if (list.length > 60) {
zero = list[list.length - 1] == 0 ||
list[list.length - 2] == 0 ||
list[list.length - 3] == 0;
} else {
break;
}
}
}