Marco
10ad73c940
This commit adds persistence. Notes are added to a sqlite database, can be deleted and are read at app start.
13 lines
228 B
Dart
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});
|
|
}
|