Files
GitJournal/lib/core/virtual_notes_folder.dart
Vishesh Handa d008f0d982 First version of dart migrate
Most of the files haven't been migrated. Lets work on this bit by bit
2021-04-10 22:18:35 +02:00

48 lines
874 B
Dart

// @dart=2.9
import 'package:gitjournal/settings.dart';
import 'note.dart';
import 'notes_folder.dart';
import 'notes_folder_notifier.dart';
class VirtualNotesFolder with NotesFolderNotifier implements NotesFolder {
final List<Note> _notes;
final Settings settings;
VirtualNotesFolder(this._notes, this.settings);
@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
String get name => "";
@override
String get publicName => "";
@override
NotesFolder get fsFolder {
return null;
}
@override
NotesFolderConfig get config {
return NotesFolderConfig.fromSettings(null, settings);
}
}