toArray method
Returns an array containing all elements in this stack (top to bottom order).
Implementation
List<E> toArray() {
return toList(growable: false);
}
Returns an array containing all elements in this stack (top to bottom order).
List<E> toArray() {
return toList(growable: false);
}