nextVersion method

State nextVersion([
  1. DateTime? timestamp
])
inherited

Create a new version of this state with incremented version

Implementation

State nextVersion([DateTime? timestamp]) {
  return copyWith(
    version: _version + 1,
    lastModified: timestamp ?? DateTime.now(),
  );
}