label method
Localized state label.
Implementation
String label(BuildContext context) {
final l = NmNetwork.l10n(context);
return switch (this) {
NmConnectionState.disconnected => l.stateDisconnected,
NmConnectionState.connecting => l.stateConnecting,
NmConnectionState.connected => l.stateConnected,
NmConnectionState.disconnecting => l.stateDisconnecting,
};
}