setBoolean

fun setBoolean(key: String, value: Boolean)

Function to set a Boolean value to preference

Parameters

key

String key for calling it later

value

Boolean value to store