writeBool static method

Future writeBool(
  1. String name,
  2. bool value
)

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"));
}