Creating an Entity
Last updated
Last updated
Let's create for our note entry with the following properties: title, content, and last updated timestamp.
Since our Entity
will flow between the Presentation and Infrastructure layers via , it will either need to extend the class or integrate with the class to improve the efficiency of BLoC by only emitting new states if and only if there are changes to the entity
.
Create a file called note_entry.dart
in the note_app/modules/domain/lib/note/entities/
directory: