Files
GitJournal/lib/core/note_fs_entity.dart
Vishesh Handa 5b8fc6342a Connect the AppState to the Folders
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.
2019-12-04 15:33:30 +01:00

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;
}
}