SimpleStringKeyValueServer constructor

SimpleStringKeyValueServer(
  1. String name, {
  2. Set<String> keySuggestions = const {},
  3. Set<String> keyOptions = const {},
  4. Map<String, String> keyIcons = const {},
  5. String? icon,
})

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),
      );