A new array can be created by using the literal constructor [] :
Read moreWhat does list Generate do flutter?
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 .. … The created list is fixed-length if growable is set to false.
Read more