getExtension method

String getExtension()

Implementation

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