SimpleStringKeyValueServer constructor
SimpleStringKeyValueServer(})
Implementation
SimpleStringKeyValueServer(
this.name, {
Set<String> keySuggestions = const {},
Set<String> keyOptions = const {},
Map<String, String> keyIcons = const {},
this.icon,
}) : keySuggestions = keySuggestions
.map((e) => ValueWithType(StorageType.string, e))
.toSet(),
keyOptions =
keyOptions.map((e) => ValueWithType(StorageType.string, e)).toSet(),
keyIcons = keyIcons.map(
(key, value) =>
MapEntry(ValueWithType(StorageType.string, key), value),
);