import 'dart:math'; final Random _random = Random(); T getRandomElement(List list) { return list[_random.nextInt(list.length)]; }