setLocal method

Future<void> setLocal(
  1. List<M> items, {
  2. bool removeAll = true,
})

Implementation

Future<void> setLocal(
  List<M> items, {
  bool removeAll = true,
}) async {
  await client.db.setLocal(
    service,
    items.map((e) => e.toJson()).toList(),
    removeAll: removeAll,
  );
}