randomItem property
T?
get
randomItem
Returns a random item from the list.
Implementation
T? get randomItem => orderByRandom.firstOrNull;
Returns a random item from the list.
T? get randomItem => orderByRandom.firstOrNull;