Skip to content

Commit 0ae399d

Browse files
author
Arpit-Sahu
committed
code formatted
1 parent 7415701 commit 0ae399d

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

lib/controller/file_manager_controller.dart

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ class FileManagerController extends ChangeNotifier {
3131
return willNotGoToParent;
3232
}
3333

34-
List<FileSystemEntity> sort(SortBy sort, List<FileSystemEntity> entitys) {
35-
if (sort == SortBy.name) {
36-
entitys
37-
.sort((a, b) => a.path.toLowerCase().compareTo(b.path.toLowerCase()));
38-
return entitys;
39-
} else if (sort == SortBy.date) {}
40-
}
34+
// List<FileSystemEntity> sort(SortBy sort, List<FileSystemEntity> entitys) {
35+
// if (sort == SortBy.name) {
36+
// entitys
37+
// .sort((a, b) => a.path.toLowerCase().compareTo(b.path.toLowerCase()));
38+
// return entitys;
39+
// } else if (sort == SortBy.date) {}
40+
// }
4141

4242
/// Open directory by providing Directory.
4343
void openDirectory(FileSystemEntity entity) {

lib/enums/sort_by.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
enum SortBy {
22
name,
33
date,
4-
}
4+
}

0 commit comments

Comments
 (0)