asBoolOr method

bool asBoolOr (bool defaultValue)

Asserts that value is a boolean and returns it.

If value doesn't exist, this returns defaultValue.

Implementation

bool asBoolOr(bool defaultValue) => asBool;