XrayRouting class

Core routing fields for a generated configuration.

This is Core JSON routing, separate from the plugin native VPN-routing options. Native preparation adds only its managed service rules.

Implemented types

Constructors

XrayRouting({String domainStrategy = 'AsIs', String? domainMatcher, List<JsonMap> rules = const [], List<JsonMap> balancers = const []})
Creates routing with AsIs domain strategy and empty rules/balancers by default. Rule order is preserved.
const

Properties

balancers → List<JsonMap>
Core balancer definitions referenced by routing rules.
final
domainMatcher → String?
Optional Core domain matcher implementation name.
final
domainStrategy → String
Core domain-resolution strategy used while matching routing rules.
final
hashCode → int
The hash code for this object.
no setterinherited
rules → List<JsonMap>
Ordered Core rule objects, retained as supplied.
final
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() → JsonMap
Returns this value as JSON fields.
override
toString() → String
A string representation of this object.
inherited

Operators

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