textoDasNotasErradas function

String textoDasNotasErradas(
  1. int notas
)

O texto de quantas notas erradas ou faltadas: "1 nota errada", "4 notas erradas".

Implementation

String textoDasNotasErradas(int notas) =>
    '$notas ${notas == 1 ? 'nota errada' : 'notas erradas'}';