get

Get value for the specified key.

Return

Value that is stored in the settings, otherwise a string describing an error.

Parameters

key

Key.


open fun get(key: String, defaultValue: Value): Expected<String, Value>

Get value for the specified key, if key doesn't exist return a default value.

Return

Value that is stored in the settings or default value provided as parameter.

Parameters

key

Key.

defaultValue

Value that will be returned in case if there is no associated value exists for provided key.