Kate
2 years ago
committed by
GitHub
8 changed files with 203 additions and 110 deletions
@ -0,0 +1,13 @@
|
||||
part of '../neon_files.dart'; |
||||
|
||||
final filesSortBox = SortBox<FilesSortProperty, WebDavFile>( |
||||
{ |
||||
FilesSortProperty.name: (final file) => file.name.toLowerCase(), |
||||
FilesSortProperty.modifiedDate: (final file) => file.lastModified?.millisecondsSinceEpoch ?? 0, |
||||
FilesSortProperty.size: (final file) => file.size ?? 0, |
||||
}, |
||||
{ |
||||
FilesSortProperty.modifiedDate: Box(FilesSortProperty.name, SortBoxOrder.ascending), |
||||
FilesSortProperty.size: Box(FilesSortProperty.name, SortBoxOrder.ascending), |
||||
}, |
||||
); |
Loading…
Reference in new issue