setDocumentExpiration abstract method
- @Deprecated('Use defaultCollection.setDocumentExpiration instead.')
Sets an expiration
date for a Document by its id
.
After the given date the document will be purged from the database
This is more drastic than deletion: It removes all traces of the document. The purge will not be replicated to other databases.
Implementation
@Deprecated('Use defaultCollection.setDocumentExpiration instead.')
FutureOr<void> setDocumentExpiration(String id, DateTime? expiration);