updateMappingsOrder method
- List<
AnkiMapping> newMappings
Update the user-defined order of a given dictionary in the database. See the dictionary dialog's ReorderableListView for usage.
Implementation
void updateMappingsOrder(List<AnkiMapping> newMappings) async {
_database.writeTxnSync(() {
_database.ankiMappings.clearSync();
_database.ankiMappings.putAllSync(newMappings);
});
}