mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-07-15 07:56:11 +08:00

Now when adding/editing/removing a note, it gets modified from the directory it was present in. There is no longer a just a plain list of all notes, but always a tree of notes, which are inside Folders.
20 lines
303 B
Dart
20 lines
303 B
Dart
import 'note.dart';
|
|
import 'notes_folder.dart';
|
|
|
|
class NoteFSEntity {
|
|
NotesFolder folder;
|
|
Note note;
|
|
|
|
NoteFSEntity({this.folder, this.note}) {
|
|
assert(folder != null || note != null);
|
|
}
|
|
|
|
bool get isNote {
|
|
return note != null;
|
|
}
|
|
|
|
bool get isFolder {
|
|
return folder != null;
|
|
}
|
|
}
|