createEvent method

Future<void> createEvent(
  1. Event event
)

Implementation

Future<void> createEvent(Event event) async {
  final db = await database;
  await db.insert('events', event.toMap());
}