putBool method

void putBool({
  1. required String key,
  2. bool value = false,
})

保存bool数据 key 存储key value bool value

Implementation

void putBool({required String key, bool value = false}) {
  if (key.isNotEmptyString) {
    _storageData<bool>(key, value, "bool");
  }
}