getFileNameNoExtension static method

String getFileNameNoExtension(
  1. String path
)

converts /some/path/file.json to file

Implementation

static String getFileNameNoExtension(String path) {
  return getFileName(path).split('.').first;
}