popValues method
Pops a number of values from the stack and returns a list of those values.
This returns values in the order they were pushed.
Implementation
List<dynamic> popValues(int count) {
var o = List.generate(count, (index) => at(index - count));
pop(count);
return o;
}