replaceOne abstract method

Future<TModel?> replaceOne(
  1. TModel model, {
  2. Map<String, String>? headers,
  3. Map<String, dynamic>? extra,
})

Replaces an existing item on the remote API with full replacement.

Uses methodForReplace and urlForReplace for the HTTP request. headers can override default headers for this specific request.

Implementation

Future<TModel?> replaceOne(
  TModel model, {
  Map<String, String>? headers,
  Map<String, dynamic>? extra,
});