saveBool static method

dynamic saveBool(
  1. String key,
  2. bool value
)

Implementation

static saveBool(String key, bool value) async {
  SharedPreferences prefs = await SharedPreferences.getInstance();
  prefs.setBool(key, value);
}