updateDictionaryOrder method

void updateDictionaryOrder(
  1. List<Dictionary> newDictionaries
)

Update the user-defined order of a given dictionary in the database. See the dictionary dialog's ReorderableListView for usage.

Implementation

void updateDictionaryOrder(List<Dictionary> newDictionaries) async {
  _database.writeTxnSync(() {
    _database.dictionarys.putAllSync(newDictionaries);
  });
}