setVersion method Null safety

RequestOptions setVersion(
  1. int version
)

Implementation

RequestOptions setVersion(int version) {
  if (version < 1) {
    throw VersionException(version);
  }
  this.version = version;
  return this;
}