remainingGuessesLabel function

String remainingGuessesLabel(
  1. int value
)

Creates the grammatically correct human-readable string for the number of remaining guesses.

Implementation

String remainingGuessesLabel(int value) =>
    '$value remaining guess${value == 1 ? '' : 'es'}.';