saveManyLocal method

Future<List<String>?> saveManyLocal(
  1. Iterable<DataModelMixin<DataModelMixin>> models, {
  2. bool notify = true,
  3. bool async = true,
})
inherited

Implementation

Future<List<String>?> saveManyLocal(Iterable<DataModelMixin> models,
    {bool notify = true, bool async = true}) async {
  final savedKeys = async
      ? await runInIsolate(
          (adapter) => adapter._saveManyLocal(adapter, models))
      : _saveManyLocal(this as Adapter, models);
  if (async) {
    if (notify) {
      core._notify(savedKeys, type: DataGraphEventType.updateNode);
      return null;
    }
  }
  return savedKeys;
}