fnotes/lib/note.dart

13 lines
228 B
Dart
Raw Normal View History

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});
}