updateRaw method
Future<void>
updateRaw(
- Map<
String, dynamic> values, - DocumentReference<
Object?> reference, { - bool isTimestamp = false,
- String updatedFieldValueKey = documentUpdatedAtKey,
override
Implementation
@override
Future<void> updateRaw(
Map<String, dynamic> values,
DocumentReference reference, {
bool isTimestamp = false,
String updatedFieldValueKey = documentUpdatedAtKey,
}) async {
final data = values;
final nowAt = Timestamp.now();
if (isTimestamp) {
data[updatedFieldValueKey] = nowAt;
}
final batch = Batch()..updateRaw(values, reference);
await batch.commit();
}