getPrefix method
Implementation
String getPrefix(String path) {
final List<String> filterPath = path.substring(0, path.length).split('/');
if (filterPath.contains('images') && filterPath[filterPath.length - 2] != 'images') {
return filterPath[filterPath.length - 2].trim().toLowerCase() + '_';
}
return '';
}