readBool static method

Future<bool> readBool(
  1. String name
)

Read a boolean value from the local storage Provide a name for the value you want to read.

Implementation

static Future<bool> readBool(String name) async {
  return (await readValue(name) ?? "") == "true";
}