random property
T
random
Returns random value from this list
Example:
list.random // [1,2,3,4,5] -> 4
Implementation
T get random => (this..shuffle()).first;
Returns random value from this list
Example:
list.random // [1,2,3,4,5] -> 4
T get random => (this..shuffle()).first;