This function is used for get file name with extension
String? getFileName(File file) { return file.path.split('/').last; }