NmServerLocation class

A server location (country + optional city / node name).

Annotations

Constructors

NmServerLocation({required String id, required String name, String? countryCode, int? pingMs, String? group})
Creates an NmServerLocation.
const
NmServerLocation.auto({String id = 'auto', String name = '', int? pingMs})
Automatic "fastest server" pseudo-location.
const

Properties

countryCode → String?
ISO 3166-1 alpha-2; null = automatic selection.
final
group → String?
Grouping key (e.g. subscription name).
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
Stable id.
final
isAuto → bool
Whether this is the automatic "fastest server" choice.
no setter
name → String
Display name; empty for NmServerLocation.auto (the widget shows "Auto-select").
final
pingMs → int?
Last measured round trip, if known.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

label(BuildContext context) → String
Display name; "Auto-select" for the automatic choice.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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