Files
GitJournal/lib/core/virtual_notes_folder.dart
Vishesh Handa 7fd2546334 Add as NotesFolderReadOnly interface
This simplifies the implementation of VirtualNotesFolder and
NotesFolder.
2020-02-09 19:11:01 +01:00

21 lines
395 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
bool get isEmpty => _notes.isEmpty;
@override
bool get hasNotes => _notes.isNotEmpty;
}