Creates a list with length positions and fills it with values created by calling generator for each index in the range 0 .. length – 1 in increasing order . The created list is fixed-length if growable is set to false. The length must be non-negative.