ClientClashMode class
Represents the available and current Clash modes.
- Annotations
-
- @JsonSerializable.new()
Constructors
-
ClientClashMode({required List<
String> modes, required String currentMode}) - Creates a new ClientClashMode instance.
-
ClientClashMode.fromJson(Map<
String, dynamic> json) -
Creates a new ClientClashMode instance from a JSON map.
factory
Properties
- currentMode → String
-
The currently active Clash mode.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
modes
→ List<
String> -
The list of available Clash modes (e.g.,
'Global', 'Rule', 'Direct').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(
) → Map< String, dynamic> - Converts this ClientClashMode instance to a JSON map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited