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