writeBool static method
Write a bool value to the local storage
Provide a name
for the value and a value
to write.
Implementation
static Future writeBool(String name, bool value) async {
return await writeValue(name, (value == true ? "true" : "false"));
}