contextEpoch property
Counts the calls that change the context: generate, saveState and loadState add 1 when called, before they return, whether they later run, fail or are cancelled. An unchanged value means the context still holds what the caller left there.
Implementation
@override
int get contextEpoch => _contextEpoch;