randomChoice property

dynamic get randomChoice

returns a random element from the list

Implementation

dynamic get randomChoice => this[math.Random().nextInt(length)];