jeudi 8 juillet 2021

Flutter : How creat new list with changed index from exist list?

if I have this List in Flutter :

var myList = ["a","b" , "c" , "d"];

How to create new list from myList by random index for each value like :

   ["b","c" , "a" , "d"];

or :

   ["a","c" , "d" , "b"];

or any other random list




Aucun commentaire:

Enregistrer un commentaire