random property

T get random

Returns a random element from the list.

Example:

final randomItem = list.random;

Implementation

T get random => (this..shuffle()).first;