word function
"Return a random word from the list of words."
The function is named word() and it returns a String. The function body is a single expression, which is the return value
Implementation
String word() => words.toList()[Random().nextInt(words.length)];