removeQuickAction method

void removeQuickAction(
  1. {required AnkiMapping mapping,
  2. required int slotNumber}
)

Removes a given mapping's persisted action for a given slotNumber.

Implementation

void removeQuickAction({
  required AnkiMapping mapping,
  required int slotNumber,
}) async {
  mapping.actions!.remove(slotNumber);

  _database.writeTxnSync(() {
    _database.ankiMappings.putSync(mapping);
  });
}