How to shuffle a List in Dart/Flutter?

This Article is posted by seven.srikanth at 10/11/2021 6:01:01 PM



Here is an example of how to shuffle a List in Dart/Flutter.


var list = ['a', 'b', 'c', 'd', 'f', 'g'];

list.shuffle();

print('$list');
Thanks,
Srikanth

Tags: List; shuffle; jumble;








0 Comments
Login to comment.
Recent Comments

Be the first to Comment. You can ask a Query or Share your toughts or Just say thanks.


© 2018 - Fluttercentral | Email to me - seven.srikanth@gmail.com