getNestedIntList function

List getNestedIntList(
  1. int depth
)

Get a List with 0 or more parent lists.

Specify depth to added one or more parent Lists.

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

Implementation

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