Check out example codes for "dar initilize list with zero". It will help you in understanding the concepts better.

Code Example 1

List<int> zeros = List.filled(10, 0)

Learn ReactJs, React Native from akashmittal.com