hasStartsWithOr method

bool hasStartsWithOr(
  1. List<String> needles
)

Implementation

bool hasStartsWithOr(List<String> needles) {
  bool needleLoop(String option) {
    for (final needle in needles) {
      if (option.startsWith(needle)) return true;
    }

    return false;
  }

  return where(needleLoop).isNotEmpty;
}