Files
GitJournal/lib/core/virtual_notes_folder.dart
Vishesh Handa 494d866686 Make the home screen show all the notes
It can show call the notes recursively, instead of showing just the root
folder. This makes it much easier to access a note recently modified.
2020-03-12 01:35:48 +01:00

35 lines
600 B
Dart

import 'note.dart';
import 'notes_folder.dart';
import 'notes_folder_notifier.dart';
class VirtualNotesFolder
with NotesFolderNotifier
implements NotesFolderReadOnly {
final List<Note> _notes;
VirtualNotesFolder(this._notes);
@override
List<Note> get notes => _notes;
@override
List<NotesFolder> get subFolders => [];
@override
bool get isEmpty => _notes.isEmpty;
@override
bool get hasNotes => _notes.isNotEmpty;
@override
NotesFolder get parent => null;
@override
String pathSpec() => "";
@override
NotesFolder get fsFolder {
return null;
}
}