getDirNameByFile static method

String getDirNameByFile(
  1. File? file
)

Implementation

static String getDirNameByFile(File? file) {
  if (file == null) return "";
  return getDirName(file.absolute.path);
}