recordOpen static method
Increment the total + daily open counter.
Implementation
static Future<void> recordOpen(String stateId) async {
final today = _todayKey();
await _col.doc(stateId).set({
'total': FieldValue.increment(1),
'today_$today': FieldValue.increment(1),
}, SetOptions(merge: true));
}