getFileNameWithoutExtension method

String? getFileNameWithoutExtension(
  1. File file
)

this function is used to get file name without extension

Implementation

String? getFileNameWithoutExtension(File file) {
  return file.path.split("/").last;
}