hasSuffix method

bool hasSuffix({
  1. required String file,
  2. required List<String> excludeSuffixes,
})

Check if has suffix

Implementation

bool hasSuffix(
    {required String file, required List<String> excludeSuffixes}) {
  final hasSufix = excludeSuffixes.any((sufix) => file.endsWith(sufix));
  return hasSufix;
}