List<E>. generate constructor Null safety Generates a list of values . 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.
List<E>. generate constructor Null safety Generates a list of values . 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.