mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-08-06 15:21:21 +08:00

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.
35 lines
600 B
Dart
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;
|
|
}
|
|
}
|