containEndWith method

bool containEndWith(
  1. String word,
  2. List<String> list
)

Implementation

bool containEndWith(String word, List<String> list) {
  for (String char in list) {
    if (word.endsWith(char)) {
      return true;
    }
  }
  return false;
}