isPastTense function Null safety
- String word
returns true if this word is in the past tense
Implementation
bool isPastTense(String word) {
return word.toLowerCase().trim() == PAST.convert(word).toLowerCase().trim();
}
returns true if this word is in the past tense
bool isPastTense(String word) {
return word.toLowerCase().trim() == PAST.convert(word).toLowerCase().trim();
}