getExtension method
Implementation
String getExtension() {
List<String> parts = fileName.split('.');
if (parts.length > 1) {
return parts.last;
} else {
return "";
}
}
String getExtension() {
List<String> parts = fileName.split('.');
if (parts.length > 1) {
return parts.last;
} else {
return "";
}
}