modify method

  1. @override
Future<Map<String, dynamic>> modify(
  1. String id,
  2. Map<String, dynamic> data,
  3. [Map<String, dynamic> params]

PATCH /:id Modifies a resource. Clients can submit only the data they want to change, and the corresponding resource will have only those fields changed. This endpoint should return the modified resource.


Future<Map<String, dynamic>> modify(String id, Map<String, dynamic> data,
    [Map<String, dynamic> params]) async {
  await collection.document(id).update(data);
  return _mapWithId(await collection.document(id).get());