NotesModel class
Model for database
Constructors
- NotesModel({int id, String content, DateTime date})
-
NotesModel.fromMap(Map<
String, dynamic> map) - Makes NotesModel from database data
Properties
Methods
-
getShortDesc(
int maxSymbols) → String - Gets string to set it as note description
-
getTitleFromModel(
int maxSymbols) → String - Gets string to set it as note title
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toMap(
) → Map< String, dynamic> - Prepares data to store it in database
-
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited