asBoolOr method

bool? asBoolOr([
  1. bool? defaultValue
])

If object is bool then return it otherwise default value

Implementation

bool? asBoolOr([bool? defaultValue]) {
  return _getValueOr<bool>(defaultValue);
}