getFileNameSuffix static method
Implementation
static String getFileNameSuffix({String filePath:''}){
if(filePath==null)return'';
List<String> filePaths = filePath.split('.');
if(filePaths.length<2){
return filePaths[0];
}else{
return filePaths[filePaths.length-1];
}
}