Persisted file order options
This commit is contained in:
@ -1,12 +1,17 @@
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
|
||||
import '../../view/pages/files/files.dart';
|
||||
|
||||
part 'fileSettings.g.dart';
|
||||
|
||||
@JsonSerializable()
|
||||
class FileSettings {
|
||||
bool sortFoldersToTop;
|
||||
|
||||
FileSettings({required this.sortFoldersToTop});
|
||||
bool ascending;
|
||||
SortOption sortBy;
|
||||
|
||||
FileSettings({required this.sortFoldersToTop, required this.ascending, required this.sortBy});
|
||||
|
||||
factory FileSettings.fromJson(Map<String, dynamic> json) => _$FileSettingsFromJson(json);
|
||||
Map<String, dynamic> toJson() => _$FileSettingsToJson(this);
|
||||
|
Reference in New Issue
Block a user