modify method

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

Modifies a resource.

Implementation

@override
Future<Map<String, dynamic>> modify(id, data,
    [Map<String, dynamic> params]) async {
  await _load();
  var r = await _store.update(id, data, params).then(_jsonifyToSD);
  await _save();
  return r;
}