asBoolOr method

bool asBoolOr (
  1. 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;