VlessOptions class

Immutable instance settings. Server configuration remains on startVless.

Constructors

VlessOptions({NotificationOptions notification = const NotificationOptions(), QuickAccessOptions quickAccess = const QuickAccessOptions(), ReconnectOptions reconnect = const ReconnectOptions(), ProtectionOptions protection = const ProtectionOptions(), DiagnosticsOptions diagnostics = const DiagnosticsOptions()})
Creates native settings for initialization; server JSON is supplied on Start.
const
VlessOptions.fromMap(Map<String, Object?> map)
Restores non-secret settings saved with toMap. Unknown fields are ignored; malformed values and unsupported schema versions fail before native calls.
factory

Properties

diagnostics → DiagnosticsOptions
Privacy-filtered native diagnostic collection and limits.
final
hashCode → int
The hash code for this object.
no setterinherited
isDefault → bool
Whether settings can use the legacy native initialization contract.
no setter
notification → NotificationOptions
Android foreground-notification presentation and action.
final
protection → ProtectionOptions
Protection and OS recovery policy for the next explicit connection.
final
quickAccess → QuickAccessOptions
Native quick-control presentation and authorization.
final
reconnect → ReconnectOptions
Worker recovery policy for the next explicit connection.
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
toMap() → Map<String, Object?>
Validates and encodes the versioned, non-secret native settings contract.
toString() → String
A string representation of this object.
inherited
validate() → void
Throws ArgumentError for invalid text, resources, limits or policy pairs.

Operators

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