shuffled method

List<E> shuffled([
  1. Random? random
])

Returns a new List with the elements of this List randomly shuffled using the specified random instance as the source of randomness.

Implementation

List<E> shuffled([Random? random]) => toList()..shuffle();