this function is used to get file name without extension
String? getFileNameWithoutExtension(File file) { return file.path.split("/").last; }