consentGeneration property
int
get
consentGeneration
A monotonically-increasing counter bumped on every consent MUTATION.
A controller captures this right after its load passes the gate and compares it once the ad actually installs: if it advanced in between, a consent change landed WHILE the request was in flight, so the ad carries a stale consent state and must be dropped and re-requested (the mid-load window). 0 when consent tracking is not wired (isolated controller tests).
Implementation
int get consentGeneration => _consentGeneration?.call() ?? 0;