random property

T random

Returns a random element from this List.

Implementation

T get random => this[Random().nextInt(length)];