add method
Implementation
Future<InAppDocumentSnapshot?> add(InAppDocument data) {
final i = data[_idField];
final id = i is String ? i : _id;
data[_idField] = id;
return doc(id).set(data).then(_n);
}
Future<InAppDocumentSnapshot?> add(InAppDocument data) {
final i = data[_idField];
final id = i is String ? i : _id;
data[_idField] = id;
return doc(id).set(data).then(_n);
}