removeQuickAction method
- {required AnkiMapping mapping,
- 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);
});
}