contentVersionResolver property
ENH-96 (withHistory only): resolves a fetched envelope's content
revision number — defaults to _defaultContentVersionResolver
(contentVersion, then version, then 0). Used to reject a
downgrade (an incoming revision numbered lower than
currentContentVersion) without touching _current/the cache/
history at all.
Implementation
final int Function(Map<String, Object?> json)? contentVersionResolver;