# getNotesFromDB method

Future <List <NotesModel>> getNotesFromDB ()

Gets notes from DB

## Implementation

    Future<List<NotesModel>> getNotesFromDB() async {
      final db = await database;
      List<NotesModel> notesList = [];
      List<Map> maps =
          await db.query('Notes', columns: ['_id', 'content', 'date']);
      if (maps.length > 0) {
        maps.forEach((map) {
          notesList.add(NotesModel.fromMap(map));
        });
      }
      return notesList;
    }