version property

  1. @protected
int get version

Current version of the state structure.

Increment this number when making breaking changes to your state structure. When a stored state has an older version, migrate will be called automatically.

Defaults to 1.

Implementation

@protected
int get version => 1;