decodeBool method

bool decodeBool(
  1. String key, {
  2. bool defaultValue = false,
})

Implementation

bool decodeBool(String key, {bool defaultValue = false}) {
  final keyPtr = key.toNativeUtf8();
  final ret = _decodeBool(_handle, keyPtr, _bool2Int(defaultValue));
  calloc.free(keyPtr);
  return _int2Bool(ret);
}