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