localizeConnectionType function
Implementation
String? localizeConnectionType(
BuildContext context,
ConnectionType? connectionType,
) {
switch (connectionType) {
case ConnectionType.ethernet:
return context.sharedL10n.ethernet;
case ConnectionType.cellular:
case ConnectionType.kohlerCellKit:
return context.sharedL10n.cellular;
case ConnectionType.kohlerWifi:
return context.sharedL10n.wifiKohlerKit;
case ConnectionType.otherWifi:
return context.sharedL10n.wifiExtenderOther;
case null || ConnectionType.unknown:
return context.sharedL10n.unknown;
}
}