# getNotificationsFromDB method

Future <List <NotificationModel>> getNotificationsFromDB ()

Gets notifications from DB

## Implementation

    Future<List<NotificationModel>> getNotificationsFromDB() async {
      final db = await database;
      List<NotificationModel> notesList = [];
      List<Map> maps =
          await db.query('Notifications', columns: ['_id', 'note', 'date1']);
      if (maps.length > 0) {
        maps.forEach((map) {
          notesList.add(NotificationModel.fromMap(map));
        });
      }
      return notesList;
    }