hasMatch static method

bool hasMatch(
  1. String text,
  2. List<String> list
)

Implementation

static bool hasMatch(String text, List<String> list) {
  for (String item in list) {
    if (text == item) {
      return true;
    }
  }
  return false;
}