saveEvent static method

Future<void> saveEvent(
  1. MBAutomationEvent event
)

Saves an event in the DB. @param event The event to save.

Implementation

static Future<void> saveEvent(MBAutomationEvent event) async {
  Database db = await _database();
  await db.insert(
    'event',
    event.toDbDictionary(),
  );
}