recordShare static method
Record a share action.
Implementation
static Future<void> recordShare(String stateId) async {
await _col.doc(stateId).set({
'shares': FieldValue.increment(1),
}, SetOptions(merge: true));
}
Record a share action.
static Future<void> recordShare(String stateId) async {
await _col.doc(stateId).set({
'shares': FieldValue.increment(1),
}, SetOptions(merge: true));
}