stackOrderDescending function Stack orders Stacks

List<int> stackOrderDescending(
  1. List<List<List<num>>> series
)

Returns a series order such that the largest series (according to the sum of values) is at the bottom.

final stack = Stack(…)..order = stackOrderDescending;

Implementation

List<int> stackOrderDescending(List<List<List<num>>> series) {
  return stackOrderAscending(series).reversed.toList();
}