Check if has suffix
bool hasSuffix(String value) { final matchList = config.excludeSuffixes.where((element) => value.endsWith(element)); return matchList.isNotEmpty; }