addNote method

Future<int?> addNote(
  1. Note note
)

Implementation

Future<int?> addNote(Note note) async {
  final db = await database;
  return await db?.insert('notes', note.toMap());
}