fileNameByFile function

String fileNameByFile(
  1. FileSystemEntity? file
)

Implementation

String fileNameByFile(FileSystemEntity? file) {
  if (file == null) {
    return "";
  }

  return basename(file.path);
}