shuffled method

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

Creates a shuffled list of the elements of the iterable.

Implementation

List<T> shuffled([Random? random]) => [...this]..shuffle(random);