upsert<_Model extends _ManagedModel> abstract method

dynamic upsert<_Model extends _ManagedModel>(
  1. _Model model, {
  2. Query query,
})

Insert or update a model in all Providers

Optionally, the repository can be passed to the same provider method with a named argument (repository: this) to use in the Adapter.

Implementation

// ignore: always_declare_return_types
upsert<_Model extends _ManagedModel>(_Model model, {Query query});