writeBool method

Future<void> writeBool({
  1. required String key,
  2. required bool value,
  3. bool isEncrypted = true,
})

write and read bool data

Implementation

Future<void> writeBool({required String key, required bool value, bool isEncrypted = true}) async {
  await writeString(key: key, value: value.toString(), isEncrypted: isEncrypted);
}