getNestedIntList function

List getNestedIntList(
  1. int depth
)

Get a List<int> with 0 or more parent lists.

Specify depth to added one or more parent Lists.

Example: depth 0 = List<int> depth 2 = List<List<List<int>>>.

Implementation

List getNestedIntList(int depth) =>
    getNestedList<int>(depth: depth, valueList: <int>[]);