currentVersion property
int
currentVersion
The current version of AggregateState. Is incremented each time an event is folded onto the state. If currentVersion is greater than originalVersion this implies that there are changes made locally.
Implementation
int get currentVersion => _current.version;