updateCatalogsOrder method
- List<
MokuroCatalog> newCatalogs
Update the user-defined order of given catalogs in the database. See the catalog dialog's ReorderableListView for usage.
Implementation
void updateCatalogsOrder(List<MokuroCatalog> newCatalogs) async {
_database.writeTxnSync(() {
_database.mokuroCatalogs.clearSync();
_database.mokuroCatalogs.putAllSync(newCatalogs);
});
}