boolOrDefValue method

bool boolOrDefValue(
  1. bool defValue
)

获取bool值,不存在时返回默认值

defValue 默认值

Implementation

bool boolOrDefValue(bool defValue) {
  return boolValue ?? defValue;
}