Future<void> mark(String ref, Map<String, dynamic> value) async { state.jobs[ref] = value; await flush(); }