PreferencesKeyValueServer constructor
PreferencesKeyValueServer(})
Implementation
PreferencesKeyValueServer(
this._preferences,
this.name, {
this.keySuggestions = const {},
this.keyOptions = const {},
/// Icon hints to show for specific keys. See [iconForKey] for more information
Map<String, String> keyIcons = const {},
/// Hints indicating for which specific key, which type is expected
Map<String, StorageType> typeForKey = const {},
this.icon,
}) : typeForKey = typeForKey.map(
(key, value) =>
MapEntry(ValueWithType(StorageType.string, key), value),
),
keyIcons = keyIcons.map(
(key, value) =>
MapEntry(ValueWithType(StorageType.string, key), value),
);