deleteEvent method

Future<int> deleteEvent(
  1. Event event
)

Implementation

Future<int> deleteEvent(Event event) async {
  final db = await database;
  return await db.delete(
    'events',
    where: 'eventName = ? AND eventMoment = ?',
    whereArgs: [event.eventName, event.eventMoment],
  );
}