update method

Future update(
  1. Map<String, dynamic> record
)

Implementation

Future update(Map<String, dynamic> record) async {
  if (!record.containsKey(ID_KEY) || record[ID_KEY] == null) throw Exception("'entityId' must be not be 'null'");
  final finder = Finder(filter: Filter.byKey(record[ID_KEY] as int));
  await _collection.update(_database, record, finder: finder);
}