fnotes/lib/note.dart
Marco 10ad73c940 Adding persistence
This commit adds persistence.
Notes are added to a sqlite database, can be deleted and are read at app
start.
2024-03-29 17:14:47 +01:00

13 lines
228 B
Dart

import 'package:uuid/uuid.dart';
class Note {
final String content;
late String id;
Note({required this.content}) {
id = const Uuid().v4().toString();
}
Note.withId({required this.id, required this.content});
}