Answers for "dart shuffle list"

1

dart shuffle list

void main() {
  List<int> list = [1, 2, 3];
  
  list.shuffle();
  
  print(list); // prints [2, 1, 3] as example
  
}
Posted by: Guest on July-31-2020

Code answers related to "Dart"

Browse Popular Code Answers by Language