randomItem property

T? get randomItem

Returns a random item from the list.

Implementation

T? get randomItem => orderByRandom.firstOrNull;