getPublishedData method
Returns the data snapshot that was frozen at the last publishCurrentVersion
call for documentId, or null if the document has never been published.
This is the mock equivalent of reading from the published_documents table:
subsequent draft edits (updateDocumentData) do NOT mutate this value.
Implementation
Future<Map<String, dynamic>?> getPublishedData(String documentId) async {
final stored = _publishedDataStore[documentId];
if (stored == null) return null;
return Map<String, dynamic>.from(stored);
}