VersionConfig class

Controls the version range in which this config can run.

When sharing config files, this prevents accidental execution on unwanted client versions. During execution, the client checks whether its current version meets this requirement.

Supports v25.8.3+.

Docs: https://xtls.github.io/config/#%E5%9F%BA%E7%A1%80%E9%85%8D%E7%BD%AE%E6%A8%A1%E5%9D%97

Annotations
  • @JsonSerializable.new(includeIfNull: false)

Constructors

VersionConfig({String? min, String? max})
VersionConfig.fromJson(Map<String, dynamic> json)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
max String?
Max config version. Format: x.y.z
getter/setter pair
min String?
Min config version. Format: x.y.z
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited